c++ pointer on 64 bit machine

前端 未结 3 595
执笔经年
执笔经年 2020-12-03 15:50

I am using c++ under 64 bit linux, the compiler (g++) is also 64 bit. When I print the address of some variable, for example an integer, it is supposed to print a 64 bit int

3条回答
  •  春和景丽
    2020-12-03 16:10

    For fun you could use the C output and see if it's more like what you're after:

    printf("0x%p");
    

提交回复
热议问题