Home >Backend Development >C#.Net Tutorial >What number system cannot be expressed in C source program?

What number system cannot be expressed in C source program?

王林
王林Original
2020-07-07 14:45:4211547browse

The number system that cannot be represented in the C source program is binary. In the C language, all numeric constants are signed, so integer constants only distinguish between integer and long integer forms. Integer constants and long integer constants can be expressed in decimal, octal, or hexadecimal.

What number system cannot be expressed in C source program?

#The number system that cannot be represented in the C source program is binary.

(Recommended learning: C language tutorial)

Analysis:

C language source program cannot represent binary. In C language, all numerical values Type constants are signed, so integer constants only distinguish between integer and long integer forms.

Integer constants and long integer constants can be expressed in decimal, octal, or hexadecimal.

During the running of the program, a quantity whose value cannot be changed is called a constant. Constants are also divided into integer types, real types, character types, etc. The above are the type attributes of constants. These types determine the size of the storage space occupied by various constants and the range of number representation.

In C programs, constants directly reflect their values ​​and types in their own existence.

The above is the detailed content of What number system cannot be expressed in C source program?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn