C++ Primer学习笔记(0)

来源:互联网 发布:谈恋爱 知乎 编辑:程序博客网 时间:2024/05/21 07:11

Be careful when using POINTER_32 values in code that may be compiled as 64-bit code. The compiler will sign-extend the pointer when it is assigned to a native pointer in 64-bit code, not zero-extend the pointer.
Be careful when using POINTER_64 values in code that may be compiled as 32-bit code. The compiler will sign-extend the pointer in 32-bit code, not zero-extend the pointer.

关于

  zero-extend  : 0扩展

   sign-extend : 符号拓展

原创粉丝点击