How long is the memory address of a single byte of 8 bytes allocated to pointer variable in a 64bit OS?

1 Answer 1


I feel like I just answered this over on CS50 Slack. hmmm.....

An address pointer in a 64 bit OS is 64 bits long. It doesn't matter what it is pointing at. The data type that it points at has absolutely no bearing on the pointer itself. The pointer contains the address of the first byte of whatever it points at.

The type of pointer only comes into play when the system needs to know the overall size of the object being pointed at.

If this answers your question, please click on the check mark to accept. Let's keep up on forum maintenance. ;-)

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .