Home >Backend Development >C#.Net Tutorial >How to represent binary in C language
How to represent C language binary?
1. First, open the C language compiler and create a new initial .cpp file, for example: test.cpp.
2. In the test.cpp file, enter the C language code: int a = 0b00000000;int a1 = 0b00000001;printf("%d", a^a1) ; .
#3. The compiler runs the test.cpp file. At this time, the binary number is successfully defined and output after XOR operation.
For more programming-related content, please pay attention to the Programming Introduction column on the php Chinese website!
The above is the detailed content of How to represent binary in C language. For more information, please follow other related articles on the PHP Chinese website!