Control Structure

Control structures’ task is to give a programme logic and flow. In C++, there are three different types of fundamental control structures.

Sequence Structure

Sequence structure describes the order in which a programme executes its instructions.

Selection Structure

The execution of instructions in accordance with the specified condition—which may be true or false—is referred to as a selection structure. It is possible to use selection structures in two different ways. Either if-else statements or switch case statements are used to accomplish these tasks.

Loop Structure

Until the condition becomes false, an instruction is executed in a loop, which is referred to as a loop structure.

Shubhajna Rai
Shubhajna Rai

A Civil Engineering Graduate interested to share valuable information with the aspirants.

Leave a Reply

Your email address will not be published. Required fields are marked *

Get the latest updates on your inbox

Be the first to receive the latest updates from Codesdoc by signing up to our email subscription.

    StudentProjects.in