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

What are header files and what are its uses in C programming?

858


Here is a neat trick for checking whether two strings are equal

790


What is a stream water?

898


Explain how can I convert a number to a string?

865


What is a stream in c programming?

823


How can I trap or ignore keyboard interrupts like control-c?

819


How can I split up a string into whitespace-separated fields?

809


What are 3 types of structures?

821


Tell us something about keyword 'auto'.

839


What is c basic?

888


provide an example of the Group by clause, when would you use this clause

1960


What is the translation phases used in c language?

832


What standard functions are available to manipulate strings?

819


I have a varargs function which accepts a float parameter?

795


What is an array in c?

783