What is the size of int data type?(according to me it is 2 but here it is showing 4) | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

What is the size of int data type?(according to me it is 2 but here it is showing 4)

7th Dec 2019, 3:00 PM
Tanish Gabbar
Tanish Gabbar - avatar
4 Answers
+ 1
Here it is showing 4 so should i follow this??
7th Dec 2019, 3:05 PM
Tanish Gabbar
Tanish Gabbar - avatar
- 1
2 bytes on 16 bit machine 4 bytes on 32 and 8 bytes on 64.
7th Dec 2019, 3:45 PM
Avinesh
Avinesh - avatar