Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and beauty - What are the basic types of data in C language?
What are the basic types of data in C language?
1, integer int2 (or 4) is the same as short integer (or long integer).

2, short integer short2-32768~32767

3.3 1 power long integer long4-2 ~ 3 1 power 2-1

4.unsigned[int]2 [int] 2 (or 4) is the same as unsigned short integer.

5. Unsigned short integer 20 ~ 65535 (power of 65438 of 0 ~ 2 +06-1)

6. unsigned long integer unsignedlong40~2 to the 32nd power-1

7. Single-precision real number float4- 10 to the 38th power ~ 10 to the 38th power.

8. Double precision real number double8- 10 to the 308th power of 10.

9.char 1- 128 ~ 127。

Extended data

Use unsigned long

Example:

# include & ltcstdio & gt

intmain()

{

unsignedintui =- 1;

unsignedlongul =- 1;

unsignedlonglongull =- 1;

size _ tst =- 1;

printf("ui=%u,ul=%lu,ull=%llu,st=%zu\n ",ui,ul,ull,ST);

return0

}