Binary Constants (Using The GNU Compiler Collection (GCC))
Next: Dollar Signs in Identifier Names, Previous: Hex Floats, Up: Other Extensions to C Syntax [Contents][Index]
6.12.19 Binary Constants using the ‘0b’ Prefix ¶
Integer constants can be written as binary constants, consisting of a sequence of ‘0’ and ‘1’ digits, prefixed by ‘0b’ or ‘0B’. This is particularly useful in environments that operate a lot on the bit level (like microcontrollers).
The following statements are identical:
i = 42; i = 0x2a; i = 052; i = 0b101010;The type of these constants follows the same rules as for octal or hexadecimal integer constants, so suffixes like ‘L’ or ‘UL’ can be applied.
Từ khóa » C 0b
-
Why Doesn't C Have Binary Literals? - Stack Overflow
-
Binary (0b) And Hexadecimal (0x) Literals - Read The Docs
-
Binary Literal - WikiChip
-
Binary Constants | CS+ V4.01.00 - Renesas
-
Integer Literal
-
What Does 0B Mean In C? - Quick
-
Binary Constants Using The '0b' Prefix GCC 4官方教程 _w3cschool
-
[PDF] FGG.0B.305.CLAD56 | LEMO
-
[PDF] FGG.0B.304.CYCD32 | LEMO
-
EPG.0B.304.HLN LEMO - Mouser Electronics
-
Gem Ring Single Tier Chandelier By Hammerton Studio - Lightology
-
Gem Ring Single Tier Chandelier By Hammerton Studio - Lightology
-
[PDF] Proportional Pressure Relief Valve, Pilot Operated, Decreasing ...