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

unsigned 作为标志位

  •  
  •   Sherlockhlt · Jun 4, 2013 via iPad · 3283 views
    This topic created in 4772 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
        1
    efi  
       Jun 4, 2013
    unsigned = unsigned int

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