Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and medical aesthetics - What are the three basic data types of C language?
What are the three basic data types of C language?
The three basic data types of C language are integer, real and character.

1, integer Including short, int, long, etc. , which is used to represent an integer, is signed by default, and can be expressed as unsigned with the unsigned keyword.

2. Real type, that is, floating-point type. Including floating, double precision, etc. A used to represent a real number, as opposed to an integer.

3. Character type, namely char type. Used to represent various characters, corresponding to ascii code table one by one.

Char character, accounting for 1 byte.

Short integer, accounting for 2 bytes.

Int integer, accounting for 4 bytes.

Long long, accounting for 4 bytes.

Float single-precision floating-point type, accounting for 4 bytes.

Double double-precision floating-point type, accounting for 8 bytes.

C language is a general computer programming language, which is widely used. The design goal of C language is to provide a programming language that can compile and process low-level memory in a simple way, generate a small amount of machine code and run without any support of running environment.

Although C language provides many low-level processing functions, it still maintains good cross-platform characteristics. C language programs written in standard specifications can be compiled on many computer platforms, even including some embedded processors (single chip microcomputer or MCU) and supercomputers.