JavaRunner
JavaRunner

Reputation: 2545

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

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

Answers (2)

πάντα ῥεῖ
πάντα ῥεῖ

Reputation: 1

"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.

Upvotes: 2

Bill Lynch
Bill Lynch

Reputation: 81926

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

Upvotes: 4

Related Questions