I\'m arguing with my boss about this. They say \"Yes they can be different.\"
Is it possible that sizeof(T*) != sizeof(const T*) for a type T?<
sizeof(T*) != sizeof(const T*)
T
Microchip released such a C compiler where the sizeof(T*) was 2 but sizeof(const T*) was 3.
sizeof(T*)
sizeof(const T*)
The C compiler was not standards-compliant in a few ways, so this says nothing about this being valid (I suspect it isn't and other answers agree).