+ 1

Why the pointer char size is 8 in here ? And why all size is equal ?

https://code.sololearn.com/cxdoJ0xo5F8s/?ref=app

9th Feb 2019, 3:24 PM
Programmer Raja
Programmer Raja - avatar
3 odpowiedzi
+ 6
sizeof of pointers differ between systems. 4 for 32-bit. 8 for 64-bit.
9th Feb 2019, 3:31 PM
Jomari Pantorilla
Jomari Pantorilla - avatar
+ 3
A pointer contains a memory address, so its size is the same regardless of what it points to. As Jomari Pantorilla said, the size of an address is system-dependant, and is 8 bytes on 64-bit systems (8*8 = 64).
9th Feb 2019, 5:11 PM
Zen
Zen - avatar
0
its for the memory of bits which it consumes and pointer char size is 8.
9th Feb 2019, 3:30 PM
Dibyendu Samanta
Dibyendu Samanta - avatar