Home > Article > Backend Development > What does \101 mean in c language?
In C language, 101 represents a decimal integer constant whose value is one hundred and one. Numeric constants in other bases include octal (prefixed by 0) and hexadecimal (prefixed by 0x or 0X), but the number 101 is not a valid octal or hexadecimal constant.
In C language, the meaning of 101
In C language, 101 is a decimal integer constant, It represents the number one hundred and one.
Decimal numeric constants
Decimal numeric constants are composed of numbers 0 to 9, representing integers. They do not require any prefixes or suffixes and can be written in any order.
Integers
Integers are the set of positive and negative numbers as well as the number 0. In C, integers are represented using the int data type, whose size and range depend on the compiler and platform used.
Example:
<code class="c">int num = 101; // num 的值现在为 101</code>
Other base constants
In addition to decimal numeric constants, C language also supports other base systems Numeric constants, including:
Note: The number 101 is not a valid octal or hexadecimal constant.
The above is the detailed content of What does \101 mean in c language?. For more information, please follow other related articles on the PHP Chinese website!