int main()
{
volatile int a=26;
volatile int *p=&a;
cout<<p;
return 0;
}
Output is 26 in Borland compiler, in gcc O/P is 1. Why?
What happens if many variable or a large object is declared as register, will compiler automatically disallow it to load on the registers ,instead load them on the memory, or hang, show error, etc.?
THANKS :)