Why is int size 4? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Why is int size 4?

It should be 2 as we take size of signed and unsigned integers 2 whereas long integers have size 4... (Correct me if I'm wrong)

28th Dec 2018, 5:34 PM
Purvi Goyal
2 Answers
28th Dec 2018, 5:50 PM
HonFu
HonFu - avatar
0
Integer size depends on their max and minimum values. numbers have typically 2**8**n different values.
28th Dec 2018, 7:29 PM
Seb TheS
Seb TheS - avatar