The size of integer on machine of 64bit..is 8bytes ? Isn't it ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

The size of integer on machine of 64bit..is 8bytes ? Isn't it ?

17th Jun 2017, 3:00 AM
De Vinci
1 Answer
+ 2
No. For a lot of compilers it remains 4 bytes for backwards compatibility. A simple "sizeof(int)" will return the size so you can find out what your compiler sets it to on that specific platform.
17th Jun 2017, 8:41 AM
aklex
aklex - avatar