Question
#include<stdio.h>
nt x = 40;
int main()
{
int x = 20;
printf ("%d\n", x);
return 0;
}
What will be the output of the program?
#include<stdio.h>
nt x = 40;
int main()
{
int x = 20;
printf ("%d\n", x);
return 0;
}
Answer: Option A
Was this answer helpful ?
Whenever there is conflict between a local variable and global variable, the local
variable gets priority.
Was this answer helpful ?
Submit Solution