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
Are comments included during the compilation stage and placed in the EXE file as well?
develop algorithms to add polynomials (i) in one variable
explain how do you use macro?
What are the keywords in c?
Hi can anyone tell what is a start up code?
How can I get the current date or time of day in a c program?
What is the purpose of clrscr () printf () and getch ()?
What is data type long in c?
When should the register modifier be used? Does it really help?
application areas a 'c' a) operating system b) graphics, interpreter, assembler c) program evalution, communication softwares d) all the above
What is a 'null pointer assignment' error? Explain what are bus errors, memory faults, and core dumps?
What is a built-in function in C?
How can you invoke another program from within a C program?
How do we declare variables in c?
Take an MxN matrice from user and then sum upper diagonal in a variable and lower diagonal in a separate variables. Print the result