Floating-point numbers are expressed in exponential form in machines, which are divided into four parts: number symbols, mantissa, exponential symbols and exponents. The number symbol occupies 1 binary, indicating the sign of the number. Exponential symbols occupy 1 binary, and represent the symbols of exponents. The mantissa represents the significant digits of floating-point numbers, but there is no leading zero and dot. An index represents an important number.
Matters needing attention in the use of C language
C language has no string type, and strings are stored in character arrays. Because character data is stored in the form of integer (ASCii code), it is also possible to store character data in an integer array.
In C language, strings are treated as character arrays. When character arrays are used to store string constants, a' \ 0' is automatically added as a terminator. Therefore, in the program, it is often judged whether the string ends by detecting the position of' \ 0'. When outputting a string in a character array, stop the output when encountering' \ 0'.
The above contents refer to Baidu Encyclopedia -c language.