Answer Posted / vinod
C99 and above supports the conceptof VLA(Variable Length Array) which allows you to set array size based on input during run time. It can also done using dynamic memory allocation.
Example:
int main()
{
int i;
scanf("%d",&i);
int a[i];
}
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is volatile, register definition in C
What is the difference between array_name and &array_name?
hi any body pls give me company name interview conduct "c" language only
Do array subscripts always start with zero?
How can I rethow can I return a sequence of random numbers which dont repeat at all?
What is wrong in this statement? scanf(ā%dā,whatnumber);
What are global variables?
What is the difference between a string and an array?
Is there a way to switch on strings?
How we can insert comments in a c program?
regarding pointers concept
a function gets called when the function name is followed by a a) semicolon (;) b) period(.) c) ! d) none of the above
Why do we use header files in c?
What is structure padding and packing in c?
write a program fibonacci series and palindrome program in c