Skip to Main Content
Programming and Data Structures
book

Programming and Data Structures

by Ashok Kamthane
August 2009
Intermediate to advanced content levelIntermediate to advanced
604 pages
21h 39m
English
Pearson India
Content preview from Programming and Data Structures
Decision Statements 101
Table 5.1 Difference between break and continue.
Break Continue
Exits from current block or loop.
Loop takes next iteration.
Control passes to next statement.
Control passes at the beginning of loop.
Terminates the program.
Never terminates the program.
5.8 THE switch STATEMENT
The sw itch statement is a multi-way branch statement. In the program if there is a possibility to
make a choice from a number of options, this structured selection is useful. The sw itch statement
requires only one argument of any data type, which is checked with number of ca s e options. The
switch statement evaluates expression and then loo
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Learning Data Structures and Algorithms

Learning Data Structures and Algorithms

Rod Stephens
Data Structures and Algorithms in C++, Second Edition

Data Structures and Algorithms in C++, Second Edition

Michael T. Goodrich, Roberto Tamassia, David M. Mount

Publisher Resources

ISBN: 9789332506343