Question:What will be output of the following c program?#include<stdio.h> int main(){ int xyz=20;{ int xyz=40; } printf("%d",xyz); return 0; }
#include<stdio.h> int main(){ int xyz=20;{ int xyz=40; } printf("%d",xyz); return 0; }
A 20 B 40 C 0 D Compilation error E None of these
+ AnswerA
+ ExplanationTwo variables can have same name in different scope.
+ Report