Unit 5 - Introduction To Logical Structure

Posted on Saturday, May 8, 2010 by B[H] | 0 comments
Labels:

Logical structure or program control structures refer to the order of execution of instructions in a program. So far, in all our examples, the instructions were executed sequentially one by one, from the top downwards. However, most real life problems require some kind of decision making, which involves comparing values, and based on the comparison, to take a certain course of action. Hence, C++ provides structure that will allow the non-sequential execution of program instructions. This means that an instruction or a whole block of instructions can be executed, repeated or skipped.

No comments:

Post a Comment