Why address of a variable change after each execution in C?
Posted
by Mohit
on Stack Overflow
See other posts from Stack Overflow
or by Mohit
Published on 2010-05-17T04:17:15Z
Indexed on
2010/05/17
4:20 UTC
Read the original article
Hit count: 225
int i=10; printf("Address of i = %u",&i);
Output: Address if i = 3220204848
Output on re-execution: Address of i = 3216532594
I get a new address of i each time I execute the program. What does this signify?
© Stack Overflow or respective owner