programming languages - Why address of a variable change after each execution in C? -


  int i = 10; Printf ("i =% u's address", & amp; i); Output: Address I = 3220204848 Output on re-execution: I = 3216532594 Address  

Every time I execute the program, the new address of i What does it show?

This indicates that your program is loading a different (virtual) address each time you enter it It's a feature that is called the most modern operating system.


Comments