What is the size of a pointer in C/C++?

C++Server Side ProgrammingProgramming

The size of a pointer in C/C++ is not fixed. It depends upon different issues like Operating system, CPU architecture etc. Usually it depends upon the word size of underlying processor for example for a 32 bit computer the pointer size can be 4 bytes for a 64 bit computer the pointer size can be 8 bytes. So for a specific architecture pointer size will be fixed.

It is common to all data types like int *, float * etc.

raja
Published on 02-Apr-2019 16:58:15
Advertisements