Here is my code
Suppose the address of m = 300.Code:int main() { int m, *k; m = 10; k = &m; printf("Address of m is : %d %d %d",&m, k, &(*k)); return 0; }
So the output of this program should be
I get the correct output when i try compiling this program in gcc.Code:300 300 300
But in Turbo C i get a different output. Something like
My question is when the compiler compiles this program does it substitute the expression &(*k) with &(m) or with &(10) ??Code:300 300 400