V2EX  ›  英汉词典
Enqueued related words: Sizeof

Short Int

释义 Definition(中文)

short int:编程语言(如 C/C++)中的一种短整型整数类型,通常表示“比 int 占用更少存储空间的有符号整数”。其具体字长与取值范围由平台/编译器决定(常见为 16 位,但不保证)。

发音 Pronunciation(IPA)

/ʃɔːrt ɪnt/

例句 Examples

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 可以减少内存占用,但当数字变大时必须注意溢出风险。

词源 Etymology(中文)

short 原意为“短的”,在类型命名中引申为“更短字长/更小占用”;intinteger(整数) 的缩写。合在一起,short int 就是“字长更短的整数类型”。在 C 语言中常可简写为 short

相关词 Related Words

文学与经典作品出现 Literary Works

  • The C Programming Language(Kernighan & Ritchie)
  • C++ Primer(Lippman, Lajoie, Moo)
  • The C++ Programming Language(Bjarne Stroustrup)
关于   ·   帮助文档   ·   自助推广系统   ·   博客   ·   API   ·   FAQ   ·   Solana   ·   671 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 16ms · UTC 22:25 · PVG 06:25 · LAX 14:25 · JFK 17:25
♥ Do have faith in what you're doing.