Chapter - 7: Data Types Revisited

What will be the output of the following program:


A
Sections
8
Exercises
#include<stdio.h>
int x = 10;
int main()
{
	int x = 20;
	{
		int x = 30;
		printf("\n%d", x);
	}
	printf("\n%d", x);
	return 0;
}

Output: 

30
20


© 2021 Garbage Valuegarbage value logo