Control structures in cpp, C/C++ Programming

Control Structures

It is of three types:

1 Sequence structure

2 Loop or iteration or repetition structure

3 Selection structure 

Just like C, C++ supports all the control structures of C.  The control structures switch and if  are selection structures.  The control structures while, do..while and for are known loop structure.

Posted Date: 9/20/2012 7:44:17 AM | Location : United States

Related Discussions:- Control structures in cpp, Assignment Help, Ask Question on Control structures in cpp, Get Answer, Expert's Help, Control structures in cpp Discussions

Write discussion on Control structures in cpp
Your posts are moderated
Related Questions

Simple program of c++: int main() {    int   bushels;    float dollars, rate;                 cout                 cin >> dollars;                 cout

Write a program to convert English units to metric (e.g., miles to kilometers, gallons to liters, etc.). Include a specification and a code design.

Define Bit Fields Bit Fields permits the packing of data in a structure. This is particularly useful when memory or data storage is at a premium. Usual examples: Packing

A: Use a member while you can and a friend when you need to. Sometimes friends are better syntactically (e.g., in class Fred, friend functions let the Fred parameter to be secon

A: A using declaration makes it possible to employ a name from a namespace without the scope operator.

#write a multilevel c++ program to take marks of 3 subjects and calculate percentage and display it

Expected output of the program: 1. Consider the following programs. For each, indicate whether the program is correct. If yes, what is the expected output? If not, what is the