|
|
|
|
|
Hour 3
Variables and Constants |
|
|
|
| |
 |
|
|
|
|
What Is a Variable? |
|
|
|
| |
 |
|
|
|
|
Setting Aside Memory |
|
|
|
| |
 |
|
|
|
|
Size of Integers |
|
|
|
| |
 |
|
|
|
|
signed and unsigned |
|
|
|
| |
 |
|
|
|
|
Fundamental Variable Types |
|
|
|
| |
 |
|
|
|
|
Defining a Variable |
|
|
|
| |
 |
|
|
|
|
Case Sensitivity |
|
|
|
| |
 |
|
|
|
|
Keywords |
|
|
|
| |
 |
|
|
|
|
Creating More Than One Variable at a Time |
|
|
|
| |
 |
|
|
|
|
Assigning Values to Your Variables |
|
|
|
| |
 |
|
|
|
|
typedef |
|
|
|
| |
 |
|
|
|
|
When to Use short and When to Use long |
|
|
|
| |
 |
|
|
|
|
Wrapping Around in unsigned Integers |
|
|
|
| |
 |
|
|
|
|
Wrapping Around a signed Integer |
|
|
|
| |
 |
|
|
|
|
Constants |
|
|
|
| |
 |
|
|
|
|
Literal Constants |
|
|
|
| |
 |
|
|
|
|
Symbolic Constants |
|
|
|
| |
 |
|
|
|
|
Enumerated Constants |
|
|
|
| |
 |
|
|
|
|
Summary |
|
|
|
| |
 |
|
|
|
|
Q&A |
|
|
|
| |
|
|
|
|
|
Hour 4
Expressions and Statements |
|
|
|
| |
 |
|
|
|
|
Statements |
|
|
|
| |
 |
|
|
|
|
Whitespace |
|
|
|
| |
 |
|
|
|
|
Compound Statements |
|
|
|
| |
 |
|
|
|
|
Expressions |
|
|
|
| |
 |
|
|
|
|
Operators |
|
|
|
| |
 |
|
|
|
|
Assignment Operator |
|
|
|
| |
 |
|
|
|
|
Mathematical Operators |
|
|
|
| |
 |
|
|
|
|
Combining the Assignment and Mathematical Operators |
|
|
|
| |
 |
|
|
|
|
Increment and Decrement |
|
|
|
| |
 |
|
|
|
|
Prefix and Postfix |
|
|
|
| |
 |
|
|
|
|
Precedence |
|
|
|
| |
 |
|
|
|
|
Nesting Parentheses |
|
|
|
| |
 |
|
|
|
|
The Nature of Truth |
|
|
|
| |
 |
|
|
|
|
Relational Operators |
|
|
|
| |
 |
|
|
|
|
The if Statement |
|
|
|
| |
 |
|
|
|
|
The else Clause |
|
|
|
| |
 |
|
|
|
|
Advanced if Statements |
|
|
|
| |
 |
|
|
|
|
Use Braces in Nested if Statements |
|
|
|
| |
 |
|
|
|
|
Logical Operators |
|
|
|
| |