V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
• 请不要在回答技术问题时复制粘贴 AI 生成的内容
Sherlockhlt
V2EX  ›  程序员

unsigned 作为标志位

  •  
  •   Sherlockhlt · Jun 4, 2013 via iPad · 3154 views
    This topic created in 4710 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   ·   5672 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 08:58 · PVG 16:58 · LAX 01:58 · JFK 04:58
    ♥ Do have faith in what you're doing.