Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and beauty - On long and float in c language
On long and float in c language
Long and float two data types Common data types in C language of military adviser:

Long data type

1.long is a keyword in C language, representing a data type, and Chinese is a long integer.

2.long is short for long int, which means that in C language, long int type and long type are the same.

3. The integer range that 3.Long can represent is -2,147,483,648 ~ 2,147,483,647, that is,-2 32 ~ 2 32-1.

5. When used in C format input and output, the long format character is "%ld".

Floating point data type

1.float is a data type keyword in C language, which means single-precision floating-point type (double-precision floating-point type).

2. The definition format is: float a;; // a stands for floating-point variable.

3.c language stipulates that floating-point type occupies 4 bytes of memory, with an accuracy of 7 bits, and the range of values is: 3.4 *10-38 ~ 3.4 *1038 or-(3.4 *10-38 ~ 3.4 *10.