+ 14

Qus5:- Is that possible to store 32768 in an int data type variable?

#basicquestion #c_language #c++

13th May 2019, 7:37 AM
Deepika Mourya
Deepika Mourya - avatar
8 ответов
+ 7
You can in an unsigned short int (but not in a signed short in the) and larger integer data types.
13th May 2019, 8:12 AM
Sonic
Sonic - avatar
+ 1
maybe
14th May 2019, 2:00 AM
Tigee
Tigee - avatar
0
int is usually 2 bytes or more but if you are not sure, check and see the size of int type with sizeof().
14th May 2019, 2:17 PM
Mahdi Akbaryan
0
Gouchi hang
16th May 2019, 6:27 PM
COLE HAWKE
COLE HAWKE - avatar
0
Jay ho
18th May 2019, 2:27 AM
Ankit Pateriya
0
Int
21st May 2019, 1:36 PM
Tinku Singh
0
int=4 bytes and it ranges from -32768 to 32767 so you may use unsigned int as it ranges from 0 to 65,535
23rd May 2019, 4:05 PM
Gursimran Singh