Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
Arithmetic Operators ............................................................................................................................ 35<br />
Relational Operators ............................................................................................................................. 37<br />
Logical Operators .................................................................................................................................. 40<br />
Bitwise Operators ................................................................................................................................. 41<br />
Assignment Operators........................................................................................................................... 44<br />
Misc Operators ...................................................................................................................................... 47<br />
Operators Precedence in C++ ................................................................................................................ 48<br />
12. LOOP TYPES ....................................................................................................................... 51<br />
While Loop ............................................................................................................................................ 52<br />
for Loop ................................................................................................................................................. 54<br />
do…while Loop ...................................................................................................................................... 56<br />
nested Loops ......................................................................................................................................... 58<br />
Loop Control Statements....................................................................................................................... 60<br />
Break Statement ................................................................................................................................... 61<br />
continue Statement .............................................................................................................................. 63<br />
goto Statement ..................................................................................................................................... 65<br />
The Infinite Loop ................................................................................................................................... 67<br />
13. DECISION-MAKING STATEMENTS ...................................................................................... 69<br />
If Statement .......................................................................................................................................... 70<br />
if…else Statement ................................................................................................................................. 72<br />
if...else if...else Statement ..................................................................................................................... 73<br />
Switch Statement .................................................................................................................................. 75<br />
Nested if Statement .............................................................................................................................. 78<br />
The ? : Operator .................................................................................................................................... 81<br />
14. FUNCTIONS ....................................................................................................................... 82<br />
Defining a Function ............................................................................................................................... 82<br />
iv