Statement delimiter in C++

  1. Is the semicolon (;) used as statement delimiter in C++?

    I have been knowing that semiclon is statement terminator.

    Another confusion:
    I think, we can write as many as statements we wish in a single line and of course separating them by semicolon. But to ensure program readability we don't do that.
    Am I correct?
     
  2. jcsd
  3. CRGreathouse

    CRGreathouse 3,682
    Science Advisor
    Homework Helper

    I would also say statement terminator.

    Yes, everything could be written in a line. On the whole, I'd say it increases legibility: compare http://www0.us.ioccc.org/2004/kopczynski.c . :rofl:
     
Know someone interested in this topic? Share a link to this question via email, Google+, Twitter, or Facebook