• 请不要在回答技术问题时复制粘贴 AI 生成的内容
Sherlockhlt
V2EX  ›  程序员

unsigned 作为标志位

  •  
  •   Sherlockhlt · Jun 4, 2013 via iPad · 3554 views
    This topic created in 4901 days ago, the information mentioned may be changed or developed.
    最近看到C程序代码中一种 陌生的语法:
    unsinged open:1;
    注释说是作为标志位。。
    不知道哪里有这种语法的介绍?
    3 replies  •  1970-01-01 08:00:00 +08:00
    efi
    efi
    Jun 4, 2013
    1
    unsigned = unsigned int

    :1 = bitfield
    vietor
    vietor
    Jun 4, 2013
    2
    搜 “C 位域”
    Sherlockhlt
    Sherlockhlt
    OP
    Jun 5, 2013
    3
    @vietor
    @efi
    搜到了谢谢两位
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1521 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 32ms · UTC 23:01 · PVG 07:01 · LAX 15:01 · JFK 18:01
    ♥ Do have faith in what you're doing.