C++ control structures

See here for a quick refresher of looping in C++

Usage of while statements are quite common. Why do you think a do-while loop is required to be present in the language at all?

Have you used a do-while loop to solve any problem? If you haven't, do you think it's useless?

Let's know what you think. Next, we look at functions and arguments in C++.

Comments

  1. A normal usage of the do-while loop is to retry on error - you want the loop to execute at least once. Are there any other situations?

    ReplyDelete

Post a Comment

Popular posts from this blog

Relationships in a Relational Database

Data Schema and Blobs

Power On!