Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and beauty - Binary problem of basic plastic variables
Binary problem of basic plastic variables
Are you using an old textbook? WIN-TC compiler system is used.

Now the integer variable is 4 bytes'.

take for example

int a = 5;

A is the variable name, int is the type name, and 5 is the value of a;

To define a variable, you need to open a space of a specified size in memory to store it. Units of this size are generally expressed in bytes and bits. The length of a byte is 8 bits, and a plastic variable accounts for 2 bytes in memory (as you say), which is 16 bits;

This bit can store binary 0 or1; All the data of the computer comes down to the bottom, 1, 0 storage.