Question:What will be output of the following c program?#include<stdio.h> static num=5; extern int num; int main(){ printf("%d",num); return 0; } int num =25;
#include<stdio.h> static num=5; extern int num; int main(){ printf("%d",num); return 0; } int num =25;
A 0 B 5 C 25 D Compilation error E None of these
+ AnswerD
+ ExplanationTwo or more global variables can have same name but we can initialize only one of them.
+ Report