How can I set an array's size at run time?

Answer Posted / vijay zanvar

You can't do that in C. Use dynamic allocation method
to implement array. See Q. 20 and 41 in
http://www.geocities.com/vijoeyz/faq/

Best,
Vijay Zanvar,
Home Page - http://geocities.com/vijoeyz/

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

If I have a char * variable pointing to the name of a function ..

872


If fflush wont work, what can I use to flush input?

811


List the variables are used for writing doubly linked list program.

1776


What are variables c?

786


What is the best way to store flag values in a program?

742






Can you please explain the difference between syntax vs logical error?

878


What are formal parameters?

817


What is context in c?

704


In a header file whether functions are declared or defined?

845


What are enumerated types?

816


what are the facialities provided by you after the selection of the student.

1886


Tell me what is null pointer in c?

749


Which is the best website to learn c programming?

781


What happens if a header file is included twice?

755


What is main () in c language?

804