Do all pointers have the same size in C++?
While it might be tempting to conclude that all pointers are the same size because “pointers are just addresses, and addresses are just numbers of the same size”, it is not guaranteed by the standard and thus cannot be relied upon. The C++ standard explicitly guarantees that: void* has the same size as char* ([basic.compound]/5) … Read more