Category Archives: Top C++ Courses and Tutorials

Top C++ Courses and Tutorials

Loop Control

Loop Control

Loop Control

loop control

(a) The three types of loops available in C are for, while, and do-while.

(b) A break statement takes the execution control out of the loop.

(c) A continue statement skips the execution of the statements after it and takes the control through the next cycle of the loop.

(d) A do-while loop is used to ensure that the statements within the loop are executed at least once.

(e) The ++ operator increments the oprand by 1, whereas, the — operator decrements it by 1.

(f) The operator +=, *=, /=, %= are compound assignment operators. They modify the value of the operand to the left of them.

Decision Control Statement in C   DCA Computer Course  Trading Account  Financial Statement

Compilation and Execution

Compilation and Execution

Once you have written the program you need to type it and instruct the machine to execute it. To type your C program you need another program called Editor. Once the program has been typed it needs to be converted to machine language (0s and 1s) before the machine can execute it. To carry out this conversion we need another program called Compiler. Compiler venders provide an Integrated Development Environment (IDE) which consists of an Editor as the Compiler.

Compilation and Execution

There are several such IDEs available in the market targeted towards different operating systems. Details of which IDE to use, how to procure, install and use it are given in Appendix A. please go through this appendix and install the right IDE on your machine before you try rest of the programs in this book.

Computer Course