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
Can you explain the four storage classes in C?
What is sizeof c?
which is conditional construct a) if statement b) switch statement c) while/for d) goto
What are the 4 data types?
Explain how can I prevent another program from modifying part of a file that I am modifying?
WHICH TYPE OF JOBS WE GET BY WRITING GROUPS .WHEN THE EXAMS CONDUCTED IS THIS EXAMS ARE CONDUCTED EVERY YEAR OR NOT.PLS TELL ME THE ANSWER
Design a program which assigns values to the array temperature. The program should then display the array with appropriate column and row headings.
What are the 32 keywords in c?
What is the difference between a string and an array?
A variable that is defined in a specified portion of a program but can be used throughout the program a) global variable b) local variable c) character d) none
What is the difference between the = symbol and == symbol?
which of the following is not a character constant a) 'thank you' b) 'enter values of p, n ,r' c) '23.56E-o3' d) all of the above
What is struct node in c?
Explain what are binary trees?
What is use of #include in c?