What number system cannot be expressed in C source program?

王林
Release: 2020-07-07 14:45:42
Original
11498 people have browsed it

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template