简体   繁体   中英

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?

unsigned shortunsigned short int指的是完全相同的数据类型,并且可以互换。

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM