consider the program
int a = 10;
int main()
{
int a = 20;
}
now i need to acess the global a within main so how to do it.
but i have solution like this
int main()
{
int i = a;
int a = 20;
}
but is there any alternative.
int a = 10;
int main()
{
int a = 20;
}
now i need to acess the global a within main so how to do it.
but i have solution like this
int main()
{
int i = a;
int a = 20;
}
but is there any alternative.
Comment