What the difference between unsigned short int and unsigned int or unsigned short?

2.4k views Asked by At

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?

2

There are 2 answers

1
Bill Lynch On BEST ANSWER

unsigned short and unsigned short int refer to exactly the same datatype and are interchangeable.

0
πάντα ῥεῖ On

"but what does unsigned short int mean? Is it short or is it int?"

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.