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 do you sort filenames in a directory?
What are the two types of structure?
How can I sort a linked list?
What is the use of gets and puts?
a direct address that identifies a location by means of its displacement from a base address or segment a) absolute address b) relative address c) relative mode d) absolute mode
When would you use a pointer to a function?
What is the difference between formatted&unformatted i/o functions?
What is an expression?
Should a function contain a return statement if it does not return a value?
pierrot's divisor program using c or c++ code
Is it better to use malloc() or calloc()?
Difference between Function to pointer and pointer to function
How do I send escape sequences to control a terminal or other device?
Write a program to check palindrome number in c programming?
Why do we use null pointer?