Is the Semicolon Used as a Statement Delimiter in C++?

  • Topic: C/C++ 
  • Thread starter Thread starter mdnazmulh
  • Start date Start date
  • Tags Tags
    C++
Join the discussion
Registration is free. Start your own thread to ask a follow-up.
1 reply · 6K views
mdnazmulh
Messages
51
Reaction score
0
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?
 
Physics news on Phys.org