Flashcards
Flow of control
Cards in this deck (8)
- 1What is the general form of an If statementif(expr)
statement - 2what is the general form of an if-else statementif(expr)
statement1
else
statement2 - 3What is the general form of a while statementwhile(expr)
statement1
statement2 - 4What is the general form of a switch statementSwitch()
case'A':
printf("")
break;
default:
printf("") - 5When do the if,while, for and do statements executeWhen the expression is nonzero\true
- 6What are the four relational operatorsless than: <
greater than: >
less than or equal to: <=
greater than or equal to: >= - 7What are the two equality operatorsequal to: ==
not equal to: != - 8What are the three logical operators(unary) negation: !
Logical and: &&
Logical or: | |
Information
- Description
- 1 CIS 158 Flashcards on Flow of control, created by Abe Moore on 11/11/2015.
- Created by
- Abe Moore
- Views
- 0
- Rating