What is the output of below code?
main()
{
static in a=5;
printf("%3d",a--);
if(a)
main();
}
Answer Posted / moloy mondal
the output will be infinite no. of 5s ..bcoz integer a is
static its value wont b changed ever..
| Is This Answer Correct ? | 2 Yes | 4 No |
Post New Answer View All Answers
How main function is called in c?
How to declare pointer variables?
What tq means in chat?
Explain what header files do I need in order to define the standard library functions I use?
Explain how do you generate random numbers in c?
How the c program is executed?
What should malloc(0) do?
What is a pointer in c plus plus?
Explain what does the format %10.2 mean when included in a printf statement?
Write a program to print all permutations of a given string.
Are there constructors in c?
I need a help with a program: Write a C program that uses data input in determining the whole of points A and a whole of circles B. Find two points in A so that the line which passes through them, cut through the maximum number of circles.
Is javascript based on c?
How do you determine a file’s attributes?
Where static variables are stored in c?