+ 1

What's the size of a pointer?

30th Sep 2017, 6:56 AM
Bhavya Sharma
Bhavya Sharma - avatar
4 Answers
+ 4
On a 32 bit architecture pointer size is 4 bytes, and on 64 bit architecture it is 8 bytes, the difference is because 64 bit architecture supports much larger memory, and pointing to an offset for large memory a large number is needed. Hth, cmiiw https://code.sololearn.com/cwmYgy5caArV/?ref=app
30th Sep 2017, 7:49 AM
Ipang
+ 1
Hardware architecture. so use sizeof() 4 your programs
30th Sep 2017, 7:05 AM
Andrea Simone Costa
Andrea Simone Costa - avatar
0
It depends: 4 or 8 byte
30th Sep 2017, 7:02 AM
Andrea Simone Costa
Andrea Simone Costa - avatar
0
depends on what ?
30th Sep 2017, 7:03 AM
Bhavya Sharma
Bhavya Sharma - avatar