Flow Control
Flow Control
Flow Control
Agenda :
1. Introduction
2. Selection statements
i. if-else
ii. Switch
Case Summary
fall-through inside a switch
default case
3. Iterative Statements
i. While loop
Unreachable statement in while
ii. Do-while
Unreachable statement in do while
iii. For Loop
Initilizationsection
Conditional check
Increment and decrement section
Unreachable statement in for loop
iv. For each
Iterator Vs Iterable(1.5v)
Difference between Iterable and Iterator
4. Transfer statements
o Break statement
o Continue statement
o Labeled break and continue statements
o Do-while vs continue (The most dangerous combination)
nd
DURGASOFT, # 202,2 Floor,HUDA Maitrivanam,Ameerpet, Hyderabad - 500038,
86 040 – 64 51 27 86, 80 96 96 96 96, 9246212143 | www.durgasoft.com