c - Different logical addresses -


why when run like

int i; printf("%p\n", &i); 

i different logical addresses each time run it, shouldn't same logical address mapped onto different physical address each time run it?

memory allocated variable or program stack. memory allocated based on free space available in stack. when program executes first memory allocate executing function. next time execute same function , stack memory have other free memory. every time run program new stack address program.


Comments

Popular posts from this blog

python - mat is not a numerical tuple : openCV error -

c# - MSAA finds controls UI Automation doesn't -

wordpress - .htaccess: RewriteRule: bad flag delimiters -