Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
The conditional and the loop statements are indispensable tools of programming. We cannot write even the simplest program without using them. They are an essential necessity. Other control statements are useful but not necessary. They represent syntactic fluff that makes our programs more concise and aesthetically appealing.
These other C++ control statements are different sorts of jumps. Program designers love jumps because they allow them to transfer control to any place in the program source code effectively and efficiently. However, the program that uses jumps is more difficult to analyze than the program that does not use jumps. To understand the results of the execution of a program statement when the flow of control is sequential, the maintainer has to understand only those statements that precede immediately the one being analyzed. When the program control can jump to that statement from different places in the program, all these places can affect how this statement works. This makes the task of the maintainer more difficult. This is why jumps have a bad reputation in programming.