I was using int[5] as an int*, I thought they were roughly the same.
Now I understand.
Thank you very much.
Type: Posts; User: stef8803
I was using int[5] as an int*, I thought they were roughly the same.
Now I understand.
Thank you very much.
Ok, here's how the program works:
m[4]=004040C0
*v=00000000 v=004040C0
*v=004040C0 v=0023FF74
I can't understand why &m[4] doesn't get the address of m[4].
As you can observe, when calling...
Please run the program first. I know what the & operator should do, but it fails in this case and I wonder why.
I suppose this happens because m[4] is a kind of a constant, and doesn't have an...
Hello,
I have the following program and I observe that the f function prints different values on its two calls. The correct result is the second one.
Can anyone explain me please, exactly what...