Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and medical aesthetics - Integer, long integer, unsigned integer, single precision, double precision, character type, how many bytes each?
Integer, long integer, unsigned integer, single precision, double precision, character type, how many bytes each?
Integer and unsigned integer: 2 bytes.

Long integer: 4 bytes.

Single precision floating point number: 4 bytes.

Double precision floating point number: 8 bytes.

Character type: 1 byte.

Example:

int a; //basic integer

long int b; //Long integer

char c; //Character type

Floating d; //Single precision floating-point type

Double e; //Double precision floating-point type

char s[20]; //Character array or string type