How much memory does a C++ pointer use?

前端 未结 6 1847
南方客
南方客 2020-12-17 10:54

I\'m making the (possibly wrong) assumption that it is implementation and/or system dependent. Is there something like INT_MAX or CHAR_BIT that would tell me the size of a p

6条回答
  •  我在风中等你
    2020-12-17 11:24

    Size of Pointer depends upon your Operating System (actually the number of bits of Operating System), try sizeof(type*) function.

提交回复
热议问题