Tuesday 3 March 2020

Continue Statement in C - tccicomputercoaching.com


Continue statement  is used in C to skip the execution of current iteration inside Loop.



It will not stop loop like break statement but just skip current iteration and execute next iteration inside the loop.

Example of Continue Statement:

  1. for loop
             for(i=1;i<=10;i++)

             { if(i==6)

             {

            continue;

             }

          printf("hello world\n");

            }
i                                        op
=====================================================
1                                      he.....

2                                      he...

3                                      he;;;

4                                      he;;;

5                                      he;;;

7                                      he;;;

8                                       he;;;

9                                       he;;;

10                                     he;;;

To learn more in detail about C Language at TCCI.

Call us @ 9825618292

Visit us @ http://www.tccicomputercoaching.com

No comments:

Post a Comment