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 the preprocessor categories?

797


why to assign a pointer to null sometimes??how can a pointer we declare get assigned with a garbage value by default???

1689


Explain indirection?

839


How many keywords (reserve words) are in c?

764


What is fflush() function?

856






What does main () mean in c?

826


Explain how do you convert strings to numbers in c?

774


Write a program to produce the following output: 1 2 3 4 5 6 7 8 9 10

15393


Tell us the use of fflush() function in c language?

845


Explain how many levels deep can include files be nested?

785


What is a #include preprocessor?

793


Find MAXIMUM of three distinct integers using a single C statement

789


What language is lisp written in?

805


What is variable declaration and definition in c?

669


What are the uses of a pointer?

847