#include<stdio.h>
static num=5;
int num;
extern int num;
int main()
{
printf("%d",num);
return
0;
}
output: 5
Explanation:
Two or more global variables can have same name
but we can initialize only one of them.
No comments:
Post a Comment