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
Need assignment help What's the order that local objects are destructed?

removing jewel from a necklace

write a program in c/C++ using nested if statement for calculating the average marks and grades of 5 subjects

Input Output Most languages have "statements" to perform I/O . Though in C and C++ we use "functions" to perform I/O. C++ also has its own I/O mechanism - the cin and cout obje

The Preprocessor Directives A preprocessor directive which starts with a hash '#' ,is an instruction to the preprocessor, which acts on the source code before the compilation p

Ravi is a newbie to the programming and while learning the programming language he came to know the following rules:

Write a C++ program doing the following: The program reads from the keyboard the numbers of rows and columns of a 2-D array of integers. Then, it allocates this array (let’s name i

Program to store family members details in C++: #include #include #include struct record {   char name[30];   int age;   char state[40]; }x; //cal

#C Why don''t online compilers support the header file? What can I do to resolve this? PS. I have tried , does''nt work either. Thannk in advance.

WAP TO SWAP THE THREE DIGIT NUMBER void main () { int b,r,n,r1,r2; clrscr (); printf ("Enter the Value: "); scanf ("%d",&n); r=n%10; n=n/10; r1=n%10;