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
Loop Control Statements 191
EXERCISES
A] Answer the following questions.
1) What happens if you create a loop that never ends?
2) Is it possible to create a fo r loop that is never executed?
3) What is a loop? Why it is necessary in the program?
4) Is it possible tones t while loop within fo r loops?
5) How do you choose between while and fo r loop?
6) What is the difference between (10) and (! 1). Howwhileloop works with these values?
7) What is the difference between (1= =! l)and(l! =1)?
8) What is the difference between (I 0) and (! 0) ?
9) What are the values of NULL and! NULL?
10) Is it possible to use multiple w hile state ...
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