statement delimiter in C++


by mdnazmulh
Tags: delimiter, statement
mdnazmulh
mdnazmulh is offline
#1
Mar30-08, 12:09 AM
P: 51
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?
Phys.Org News Partner Science news on Phys.org
NASA's space station Robonaut finally getting legs
Free the seed: OSSI nurtures growing plants without patent barriers
Going nuts? Turkey looks to pistachios to heat new eco-city
CRGreathouse
CRGreathouse is offline
#2
Mar30-08, 12:37 AM
Sci Advisor
HW Helper
P: 3,680
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 .


Register to reply

Related Discussions
How do I find the equivalent statement to the statement ~(p -> ~q) Set Theory, Logic, Probability, Statistics 6
Truth of this statement? General Physics 5
Geometry statement General Math 9
Personal statement UK Materials & Chemical Engineering 1