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
why return type of main is not necessary in linux
How can variables be characterized?
What is pre-emptive data structure and explain it with example?
Write the program that calculates and prints the average of several integers. Assume that the last value read is sentinel 9999.
What is pointer to pointer in c language?
What is pivot in c?
What is include directive in c?
Which is best book for data structures in c?
What is the use of #define preprocessor in c?
What is operator precedence?
Why n++ execute faster than n+1 ?
What's the best way of making my program efficient?
Write a Program to find whether the given number or string is palindrome.
Which are low level languages?
write a program to print the consecutive repeated character from the given string... input string is : hhhhjkutskkkkkggggj output should be like this: hhhhkkkkkgggg anyone help me...