Why the size of pointer is 4 bytes?
Ava Robinson
Updated on May 10, 2026
In respect to this, how many bytes is a pointer?
4 bytes
Additionally, why size of pointer is 8 bytes? So size of pointer is not same in all machines. The reason the size of your pointer is 4 bytes is because you are compiling for a 32-bit architecture. As FryGuy pointed out, on a 64-bit architecture you would see 8. You can see that in 64-bit, sizeof(pointer) is 8 .
In respect to this, what is the size of a pointer?
4 bytes
Do all pointers have same size?
All pointers are the size of a memory address. The pointer contains as its data the address of a one memory cell that is the first or the last byte of a piece of data in memory. But these days mostly all pointers are the same size. This picture would be for a 32-bit machine with 32 bit addresses.