Generally a program executes its statements from beginning to end. But not many programs execute all their statements in strict order from beginning to end. C++ of course provides such tools by providing statements so, such statements are called program control statements.
Statements are the instructions given by the computer to perform any kind of action, be it data movements, be it making decisions or be it repeating actions. Statements form the smallest executable unit within a C++ program. Statement are terminated with a semicolon(;). C++ supports following conditional statements:
In a program, statements may be executed sequentially, selection or iteratively. Let us discuss what is meant by sequence,selection or iteration constructs.
The sequence construct means the statements are being executed sequentially.
The selection construct means the execution of statements(s) depending upon a condition-test. If a condition evaluates to true, a course of action is followed otherwise another course of action is (if) followed.
The iteration construct means repetition of a set of statements depending upon a condition test. The iteration construct is also called looping construct.
Currently we improved our website User Interface and other contents. Our next update is adding video tutorials on this site so, We create a new YouTube channel, our YouTube channel name is CodeX.
We need some time for make video tutorials (CodeX) so, stay with us and keep supporting and you know already we make a Collaboration with HackIsOn YouTube channel long time ago So, please Subscribe Our Channels