Question 1
Consider the below C program.
#include <stdio.h>
int main(){ int a = 10; { int a = 30; printf("Value of a is %d", a); } printf("\nValue of a is %d", a);
return 0;}Which of the following is the correct output for the above program?
Value of a is 30
Value of a is 30Value of a is 30
Value of a is 10Value of a is 10
Value of a is 10Value of a is 10
Value of a is 30