+ 14
Qus5:- Is that possible to store 32768 in an int data type variable?
#basicquestion #c_language #c++
8 Antworten
+ 7
You can in an unsigned short int (but not in a signed short in the) and larger integer data types.
+ 1
maybe
0
int is usually 2 bytes or more but if you are not sure, check and see the size of int type with sizeof().
0
Gouchi hang
0
Jay ho
0
Int
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