Lecture4 Structured Programming Part2
Lecture4 Structured Programming Part2
IIT Bombay
Default case if
nothing else matches
End of file (EOF) differs across systems
Works only for constant
integral expressions, i.e.,
combinations of integers or
characters which evaluate
to some integer value
Seven types of statements in C programs
Sequence statements
Condition statements
Single selection statement: if
Double selection statement: if-else
Multiple selection statement: switch
Iteration statements (sentinel controlled vs. counter controlled)
Check condition and repeat: While
Controlled iteration: For loop
Do iteration and check condition: do-while