India Languages, asked by dainvincible1, 1 year ago


What will be the output of the program?

#include
int main()
{
int X=40;
{
int X=20;
printf("%d ", X);
}
printf("%d\n", X);
return 0;
}

Answers

Answered by kajal33
0
answer is int main()
Answered by Anonymous
0
20, Whenever there is conflict between a local variable and global variable, the local variable gets priority.
Similar questions