In C language, signed means that the variable can store signed integer values, that is, integers that can represent positive and negative values. The range of a signed variable depends on its type, for example the range of int signed is -2,147,483,648 to 2,147,483,647.
The meaning of signed in C language
What is signed?
In C language, signed is a keyword that indicates that a variable can store signed integer values.
The meaning of signed integers
Signed integers refer to a series of integers that can represent positive and negative values. Positive values are represented by a plus sign ( ), and negative values are represented by a minus sign (-).
Scope of signed variable
The scope of signed variable depends on its type. For example:
##Example:
<code class="c">signed int age = 25; // 存储 25 signed int temperature = -10; // 存储 -10</code>
Note:
The above is the detailed content of What does signed mean in c language?. For more information, please follow other related articles on the PHP Chinese website!