Sir not used long or short or long long int or short sort int in this entire video?

at 1:09 why long why dont use float or double

at 2:44 what did at line 17 he wrte x = INT _MAX when he already written it at line 15

at 3:53 in what context did he said -2^31—2^31 please explain

and why did sir not used long or short or long long int or short sort int in this entire video ?

thanks you

:slight_smile:

hello @S18CRX0131
we use float and double only when we need decimal precision.
here we are dealing with integer only thats why long .

in line no 15. we used INT_MAX to print its value on screen (NOTE-> we havent stored it anywhere).

in line no 17 , we are assigning value of INT_MAX in x . (heare we are storing in variable x).

for 32 bit signed integer-> the range of value it can store is (- 2^31…2^31)

u can use long ,short,int, as per your requirement no issue in that

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.