0

Size of int

Where will the size of an integer be 2 bytes? Bcz in my system it's showing 4 bytes.

6th Sep 2016, 12:20 PM
Anil M
Anil M - avatar
2 odpowiedzi
+ 2
it depends upon which bit os u use 16 or 32 or 64 bit the size of all datatypes vary so dont worry its normal
6th Sep 2016, 5:06 PM
Suhail Pappu
Suhail Pappu - avatar
0
The size of some data types can differ a few bytes depending on the compiler used, and I think it also depends on the computer or os.
6th Sep 2016, 1:52 PM
Jonathan Dirks
Jonathan Dirks - avatar