The basic data types of C language include: char short int long float double. Define which type is called XX variable, such as character variable, integer variable and floating-point variable.
The data stored in various variables are all stored in binary. Because of different types, the binary compilation format adopted is also different. For example, plastic classes are stored with complement, and floating-point types are stored with IEEE754 standard.
for int a = 0x 1A; int b = 0 10 1; In the initialization of this variable, A and B are still integer variables. The data starting with 0x, 0x 1A, stands for 16 decimal constant (or constant), and the number starting with 0, 01kloc-0/,stands for 8 decimal constant. However, the representation of binary constants is not specified in programming. If necessary, character arrays can be used to store binary numbers, such as:
char a[ 100]= " 10 100 10 1 ";
When an operation is needed, the string is converted into an integer by a user-defined function.