If I have:
int c = 100;
float g = 22f;
when I debug the code the addresses where those variables are allocated are in reverse order compared to the order in which I wrote.
So, i.e, c
is allocated at address 0x0086f910
and g
is allocated at address 0x0086f904
.
g
is allocated before c
but in the code I write c
before g
!
This not happen, for example, for array elements or structure members where the elements/members are allocated in the same order I put them.
Why that?