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

Explain how are portions of a program disabled in demo versions?

886


What are type modifiers in c?

829


What is wrong in this statement? scanf(“%d”,whatnumber);

1002


What are structures and unions? State differencves between them.

869


hw can we delete an internal node of binary search tree the internal node has child node..plz write progarm

1832


What is the purpose of sprintf() function?

832


What is meant by initialization and how we initialize a variable?

826


What is an lvalue in c?

909


In c programming, explain how do you insert quote characters (? And ?) Into the output screen?

1019


Define VARIABLE?

924


Can we use visual studio for c?

790


Write the syntax and purpose of a switch statement in C.

870


What is a stream?

889


What does dm mean sexually?

1064


Explain what is the stack?

856