S
Subra
Hi,
If I have the same varible defined in global as well as in local
scope, how to access global scope varible in a function having the same
local def.
#include<stdio.h>
static int a=25;
int main()
{
static int a = 10;
printf("%d",a);
}
#include<stdio.h>
static int a=25;
int main()
{
static int a = 10;
printf("%d",::a); // How to access the global def??
}
If I have the same varible defined in global as well as in local
scope, how to access global scope varible in a function having the same
local def.
#include<stdio.h>
static int a=25;
int main()
{
static int a = 10;
printf("%d",a);
}
#include<stdio.h>
static int a=25;
int main()
{
static int a = 10;
printf("%d",::a); // How to access the global def??
}