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

Answer Posted / shruti

that is the main drawback of an array..
u cannot assign memory at run time...

Is This Answer Correct ?    2 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is advantage of pointer in c?

941


What is && in c programming?

924


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

951


How macro execution is faster than function ?

898


How does pointer work in c?

861


How can I dynamically allocate arrays?

812


Explain logical errors? Compare with syntax errors.

844


What is return type in c?

905


What is the scope of global variable in c?

782


Difference between MAC vs. IP Addressing

869


What is extern c used for?

795


What is output redirection?

923


Why is a semicolon (;) put at the end of every program statement?

856


What does it mean when a pointer is used in an if statement?

882


Explain how can I pad a string to a known length?

920