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
Explain how are 16- and 32-bit numbers stored?
write a progrmm in c language take user interface generate table using for loop?
Linked list is a Linear or non linear explain if linear how it working as a non linear data structures
What 'lex' does?
Why can arithmetic operations not be performed on void pointers?
define string ?
what are the advantages of a macro over a function?
List some of the static data structures in C?
What is the correct declaration of main?
What is the condition that is applied with ?: Operator?
Explain how can you avoid including a header more than once?
how could explain about job profile
What is modifier & how many types of modifiers available in c?
Subtract Two Number Without Using Subtraction Operator
Explain spaghetti programming?