What are the types of control structures in programming, C/C++ Programming

What are the various types of control structures in programming?

- Primarily there are 3 types of control structures in programming: Sequence, Selection and Repetition.

- Sequential control follows a top- down flow in executing a program. This means that step 1 is executed first, followed by step 2 and so on.

- Selection means dealing with conditional statements. This means that code is executed depending on evaluation of conditions a FALSE or TRUE. It means that not all codes may be executed and there are alternative flows within.

- Repetitions are also known as loop structures. They will repeat one or two program statements as set by a counter.

 

Posted Date: 9/9/2013 1:16:29 AM | Location : United States







Related Discussions:- What are the types of control structures in programming, Assignment Help, Ask Question on What are the types of control structures in programming, Get Answer, Expert's Help, What are the types of control structures in programming Discussions

Write discussion on What are the types of control structures in programming
Your posts are moderated
Related Questions
how to find minimum number if shelves required


I have to make a program that allow the user input 10 numbers between 10 and 100 and if the number input is the same than the last number, should appear an error message. I have th

how can i make a program with !(not) operator

Explain a class to model a banking system. The function members should allow initializing the data members, a query to facilitate for account and a facility to deposit and with


This question deals with AVL trees. The representation to be used is similar to the bank account object discussed in class. (a) Define a procedure called make-avl-tree which mak

Project Description: My project is about telephone billing system. This project was my project in my college life. The project is quite easy, i needed C++ programming language..

#quGiven the Array class definition in Fig. 11.10-11.11 (pp. 476-479) of the textbook, write a new overloaded operator function for the ‘%’ (modulus) operator (i.e., return an arra

Ask question #Mi fd d fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff