Size of a pointer

broken image
broken image

This way, the program does not need to care about the physical address of the data in memory it simply uses the identifier whenever it needs to refer to the variable.įor a C++ program, the memory of a computer is like a succession of memory cells, each one byte in size, and each with a unique address.

broken image

In earlier chapters, variables have been explained as locations in the computer's memory which can be accessed by their identifier (their name).