Chapter
If, If-Else, If-Else-If Statements
From ComputerScienceOne by Dr Chris Bourke
Concepts
- What do character comparison results show in C?
"16. Conditionals Comparison Example Result ('A' < 'a') true ('A' == 'a') false ('A' < 'Z') true ('0' < '9') true ('\n\n' < 'A') true (' ' < '\n\n') false Table 16.4.: Character comparisons in C. Unde
- How are if, if-else, and if-else-if statements written in C?
"16.2. If, If-Else, If-Else-If Statements\n\nConditional statements in C utilize the keywords if, else, and else if. Conditions are placed inside parentheses immediately after the if and else if keywo