+ 2

What value can 'int' have ?

a. Any number b. Whole number Why ?

4th Nov 2020, 6:12 AM
Ketul Patel
Ketul Patel - avatar
7 odpowiedzi
+ 9
ketul patel SL answer will be whole no bcos any number (includes decimal,fractions,whole,etc) Since int cannot store fractions,the possible answer is Whole no.
4th Nov 2020, 6:23 AM
Alphin K Sajan
Alphin K Sajan - avatar
+ 5
 int =>stands for Integer data type. Int typically requires 4 bytes of memory space Ranges from -2147483648 to 2147483647. Therfore , according to ur question "int"can store any value within this Range..
4th Nov 2020, 6:20 AM
Alphin K Sajan
Alphin K Sajan - avatar
+ 5
Thanks Alphin K Sajan 😇
4th Nov 2020, 6:26 AM
Ketul Patel
Ketul Patel - avatar
+ 5
4th Nov 2020, 6:27 AM
Alphin K Sajan
Alphin K Sajan - avatar
+ 4
I know that but SL answer is Whole number why ?
4th Nov 2020, 6:19 AM
Ketul Patel
Ketul Patel - avatar
+ 3
integers in range [-2 ^ 31, +2 ^ 31]
4th Nov 2020, 6:17 AM
Soheil
Soheil - avatar