short int:编程语言(如 C/C++)中的一种短整型整数类型,通常表示“比 int 占用更少存储空间的有符号整数”。其具体字长与取值范围由平台/编译器决定(常见为 16 位,但不保证)。
/ʃɔːrt ɪnt/
I stored the value in a short int.
我把这个值存进了一个 short int(短整型)里。
On this embedded system, using short int can reduce memory usage, but you must watch for overflow when numbers get large.
在这个嵌入式系统上,使用 short int 可以减少内存占用,但当数字变大时必须注意溢出风险。
short 原意为“短的”,在类型命名中引申为“更短字长/更小占用”;int 是 integer(整数) 的缩写。合在一起,short int 就是“字长更短的整数类型”。在 C 语言中常可简写为 short。