c++ - Visual Studio, interpret address of variable -


i'm testing things on 64-bit system , in visual studio following output code below..

#include <iostream> using namespace std; int main() {     int asdf = 32;     cout << &asdf; }  00acf88c 

in gcc -m32 0xfffc1828. differences between these 2 addresses? 0xff same 00? these logical or physical addresses?

the address @ variables placed implementation. there's nothing special addresses other that's address compiler , platform decided use store particular integer @ particular time ran program.

on system virtual memory addresses can access (unless you're writing kernel's memory management unit) going virtual addresses.


Comments

Popular posts from this blog

javascript - Wordpress slider, not displayed 100% width -

ruby on rails - RuntimeError: Circular dependency detected while autoloading constant - ActiveAdmin.register Role -

c++ - OpenMP unpredictable overhead -