Console.write(sizeof(int)); | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Console.write(sizeof(int));

how the output is 4???

27th Feb 2018, 8:40 PM
Shubh Patni
Shubh Patni - avatar
2 Answers
0
That means that a variable of the type integer will take 4 'bits' (of space) on your hard drive, if I'm not mistaken.
27th Feb 2018, 10:53 PM
D B
D B - avatar