Page 68 - 6437
P. 68

return 0;

                            }


                          When the above code is compiled and executed, it produces the following result:


                 value of a: 10
                 value of a: 11

                 value of a: 12
                 value of a: 13

                 value of a: 14
                 value of a: 15



                          continue Statement
                          The continue statement  in C programming works somewhat  like the break statement.
                   Instead of forcing termination, it forces the next iteration of the loop to take place, skipping any
                   code in between.
                          For the for loop, continue statement causes the conditional test and increment portions of
                   the loop to execute. For the while and do...while loops, continue statement causes the program
                   control to pass to the conditional tests.

                          Syntax
                          The syntax for a continue statement in C is as follows:

                 continue;



                          Flow Diagram






























                                                                                                      70
   63   64   65   66   67   68   69   70   71   72   73