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

 write a program that will open the file, count the number of occurences of each word in the the complete works of shakespeare.  You will then tabulate this information in another file.

1722


Explain the array representation of a binary tree in C.

719


What is the difference between class and object in c?

571


What is #include conio h?

584


What is boolean in c?

601






What is your stream meaning?

591


What is data structure in c language?

595


What is f'n in math?

609


What does a pointer variable always consist of?

653


What is difference between array and structure in c?

569


What is nested structure in c?

600


What is a built-in function in C?

782


Explain the meaning of keyword 'extern' in a function declaration.

707


If a variable is a pointer to a structure, then which operator is used to access data members of the structure through the pointer variable?

770


Why do we need a structure?

578