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
Define the Recursion Function in C? In C, it is potential for the function to call themselves a function is describing 'recursive' if a statement within the body of a function

1.jewels can only be removed for polishing from either end of the necklace. 2.cost of polishing=sitting number*colour value of jewels.

Aim: To implement a program to find area of rectangle, surface area of box and volume of box using virtual functions. Code:                       class rect {

(a) Write a Scheme procedure to evaluate the expression: 7/6+2*5+(3*2+6*7)*4. (b) Write a Scheme procedure to evaluate the expression: 2*(-1+(-3+4*2-7)*3/(3*2)).

Friend classes are used when two or more classes are designed to work together and require access to each other's execution in ways that the rest of the world shouldn't be permitte

What do you mean by a sequential access file? - When writing programs which store and retrieve data in a file, it's possible to designate that file into various forms. - A s

Write a program IdentyfyWordsMain.java reading a fi le (like HistoryOfProgramming) and divide the text into a sequence of words (word=sequence of letters). Save the result in a new

The Shortest Job Next (SJN) algorithm queues processes in a way that the ones that use the shortest CPU cycle will be selected for running rst. Shortest remaining time rst algori

Pointers to Objects Passing and returning of objects is, though, not very efficient since it includes passing and returning a copy of the data members. This problem can be elim

Here is a short program. It prints out the value of a variable "x". Ernie and Bert disagree about what will be printed: Ernie says, the value gets changed in "changeX" so it will p