In most implementations, size_tobject pointers and object references are exactly the same size.
Think of it this way: it size_tcan contain the size of any object, and you can use it char*to access any byte in any object, so it is understood that size_tthey char*should be close in size. Thus, your idea does not make sense in most implementations.
source
share