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 0b0000
-
Binary Literals? - C++ - Stack Overflow
-
Binary Literals
-
Good Explanation Of Hexadecimals - Gists · GitHub
-
Heading 1
-
HMAIR0: Hyp Memory Attribute Indirection Register 0 - Arm Developer
-
Arm A-profile Architecture Registers
-
MCP2518FD Is Always In "Restricted Operation Mode". Not Getting ...
-
[PDF] COMMANDER S100 DRIVE SPECIFICATIONS
-
[PDF] CS107 Lecture 2
-
C++ Similar Vibe Questions - LeetCode Discuss
-
[PDF] Smart DAC LED Biasing Circuit With Low-Power Sleep Mode (Rev. A)
-
Vivado Simulation Using VIPs - Xilinx Support
-
#0b0000 Hex Color