What is the output of below code?
main()
{
static in a=5;
printf("%3d",a--);
if(a)
main();
}
Answer Posted / amol subhash kumbhar
Output is:- 5 4 3 2 1 (This Manner)
In main()
Static is the Preserves Keyword Used to Statically allocate
the memory allocation
%3d means the 3 space are allocate in the output like as 5
4 3 2 1
main() :- main function called in main function means
recursion is applied
Is This Answer Correct ? | 5 Yes | 0 No |
Post New Answer View All Answers
What is the heap in c?
What are data structures in c and how to use them?
What is a newline escape sequence?
How can I read and write comma-delimited text?
What is n in c?
Is there any data type in c with variable size?
How will you print TATA alone from TATA POWER using string copy and concate commands in C?
What is pointer in c?
How can I swap two values without using a temporary?
What is the description for syntax errors?
When a c file is executed there are many files that are automatically opened what are they files?
What are the header files used in c language?
write a program to rearrange the array such way that all even elements should come first and next come odd
When is a void pointer used?
How can you invoke another program from within a C program?