Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and medical aesthetics - In Turbo C, why is it wrong that integer data occupies 2 bytes?
In Turbo C, why is it wrong that integer data occupies 2 bytes?

Integer data can be expressed in three forms: decimal, octal, and hexadecimal. Integer data includes integer, unsigned integer, signed integer, short integer, unsigned short integer, signed short integer, these are 2 bytes; long integer, unsigned long integer , signed long, these occupy 4 bytes.

Although you have defined an integer type, if you use long integer data when using these variables, TURBO C will report an error.

You are probably using a 32/64-bit system. Integer data occupies 4 bytes, so an error is reported.