+ 2

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

17th Jun 2017, 3:00 AM
De Vinci
2 Answers
+ 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