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