+ 2

What is size of a pointer in general in c/c++

28th Mar 2018, 3:12 PM
PRITAM CHAKRABORTY
PRITAM CHAKRABORTY - avatar
2 Réponses
+ 1
In a 16-bit byte-addressible computer, the main memory addresses are 16 bits in length. As pointer variables store memory addresses, they are 16 bits or 2 bytes in size.
28th Mar 2018, 3:58 PM
Monimoy Ghosh
Monimoy Ghosh - avatar
0
Do sizeof(ptr); and find out :)
28th Mar 2018, 3:22 PM
TurtleShell
TurtleShell - avatar