Thread: Good examples of using goto and continue

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date
    May 2015
    Posts
    228

    Question Good examples of using goto and continue

    In my c programming book that I'm currently reading, the author said that both goto and continue are both rarely used in any program and should be avoided whenever possible and that there are some exceptions where it is preferable to use these keywords(or any other keyword that changes state like break, return, etc). What would be an instance where it would make to sense to use goto or continue and not have it mess up your program(especially goto)?
    Last edited by deathslice; 05-06-2015 at 01:52 PM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Good examples/uses of bitwise operations?
    By MutantJohn in forum C Programming
    Replies: 18
    Last Post: 10-18-2013, 10:46 AM
  2. Replies: 27
    Last Post: 07-04-2013, 09:55 AM
  3. Good bitshifting tutorial or examples?
    By Striph in forum C++ Programming
    Replies: 2
    Last Post: 10-07-2012, 02:58 AM
  4. what are some good C++ source code examples?
    By orion- in forum C++ Programming
    Replies: 4
    Last Post: 09-13-2005, 09:24 PM
  5. FAQ: Examples of good questions (General)
    By Prelude in forum FAQ Board
    Replies: 1
    Last Post: 10-11-2002, 08:57 PM

Tags for this Thread