c++ - Is the sizeof(some pointer) always equal to four? - Stack Overflow

c++ - Is the sizeof(some pointer) always equal to four? - Stack Overflow

瀏覽:1417
日期:2025-06-14
Just another exception to the already posted list. On 32-bit platforms, pointers can take 6, not 4, bytes: #include #include int main() { char far* ptr; // note that this is a far pointer printf( "%d\n", sizeof( ptr)); return EXIT_SUCCESS; }...看更多