1. Definition:
A variable is a contiguous storage space with a name. In the source code, you can request and name such storage space by defining variables, and use the storage space by the name of the variable. Below, let's understand how to define a variable. For example, to live in a hotel. First step, front desk registration: Live in a few rooms (data type);
The second step, take the room card (marked is the name of the room);
The third step is to stay in the room (get the corresponding storage space).
Add: Constants can look at the hotel's name, you can't change the name of the hotel at any time. This is true, and in practice it conforms to the corresponding data type.
2. Define the format:
Data type variable name 1,..., variable name n;
int A;
Char b;
3. Initialize:
Variables can be defined and assigned, or they can be assigned at the same time as defined, while assigning the initial value to a variable is called initialization.
4. Initialize the format:
Data type variable Name 1 = specific value;
Understanding of C language variables