Chapter - 7: Data Types Revisited

What will be the output of the following program:


A
Sections
5
Exercises
#include<stdio.h>
int main()
{
	static int count = 5;
	printf("\ncount = %d", count--);
	if (count != 0)
		main();
	return 0;
}

Output: 

5
4
3
2
1


© 2020 Garbage Valuegarbage value logo