jumping inside loop

Posted by Nyan on Stack Overflow See other posts from Stack Overflow or by Nyan
Published on 2010-05-27T13:04:13Z Indexed on 2010/05/27 13:11 UTC
Read the original article Hit count: 225

Filed under:

C language allows jumping inside loop. What would be the use of doing so?

  if(n > 3) {

    i = 2;
    goto inner;
  }

   /* a lot of code */

   for(i = 0; i < limit ;i ++) {

    inner:
    /* ... */
   }

© Stack Overflow or respective owner

Related posts about c