What is the Difference between short int and int and log int (in programmig c)? Plz give me a example. Thanks.. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

What is the Difference between short int and int and log int (in programmig c)? Plz give me a example. Thanks..

24th Nov 2017, 6:38 PM
Youssif Almassri
Youssif Almassri - avatar
1 Answer
+ 4
The size required to be allocated. short is typically 2 bytes, long is 4 bytes, and int is either 2 or 4. Sorry, but no example I can think of can demonstrate how much space is assigned.
24th Nov 2017, 6:51 PM
John Wells
John Wells - avatar