Reputation: 2545
According to: http://en.wikipedia.org/wiki/C_data_types you can use unsigned short type or unsigned short int type. But what the difference between them? I know what is unsigned short and I know what is unsigned int but what does unsigned short int mean? Is it short or is it int?
Upvotes: 0
Views: 2584
Reputation: 1
"but what does
unsigned short int
mean? Is itshort
or is itint
?"
There's no difference. It's an unsigned short
, actually the int
keyword is optional for short
or long
declarations. The unsigned
keyword may applied to all of these type declarations, and makes them just unsigned
.
Upvotes: 2
Reputation: 81926
unsigned short
and unsigned short int
refer to exactly the same datatype and are interchangeable.
Upvotes: 4