Long Int? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Long Int?

I’ve been learning C++ for a few weeks and I’m up to integer modifiers. (signed, unsigned, etc.) There’s these modifiers that don’t seem like they do anything. The two are: long and short. I’ve tried long int and short int, but it doesn’t seem to do anything. Does anyone know what it does?

26th Sep 2019, 11:54 PM
Jake
1 Answer
+ 1
Martin Taylor wouldnt it be easyer to say it makes no difference until you store a number greater than 2^16(65 536)
27th Sep 2019, 12:28 AM
Lexfuturorum
Lexfuturorum - avatar