This chapter covered the different types of variables in C. Because there are different
kinds of data, C has different variable kinds to hold that data. Key points from this
chapter include:
- Learn how to name variables because almost all of your programs will use
variables. - Always define variables before you use them
- Don’t mix data types and variable types—you will get the wrong results if you do.
- If needed, you can define more than one variable on the same line.
- Don’t use a comma in a number. Enter the figure 100,000 as 100000 , not
100,000. - When storing values in variables, use the equals sign (=), also called the assignment
operator.