C++ Primer学习笔记(0)

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 : 符号拓展

你可能感兴趣的:(日记,c++,compiler,扩展)