Thread Closed

statement delimiter in C++

 
Share Thread Thread Tools
Mar30-08, 12:09 AM   #1
 

statement delimiter in C++


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?
PhysOrg.com
PhysOrg
science news on PhysOrg.com

>> Ants and carnivorous plants conspire for mutualistic feeding
>> Forecast for Titan: Wild weather could be ahead
>> Researchers stitch defects into the world's thinnest semiconductor
Mar30-08, 12:37 AM   #2
 
Recognitions:
Homework Helper Homework Help
Science Advisor Science Advisor
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 .
Thread Closed
Thread Tools


Similar Threads for: statement delimiter in C++
Thread Forum Replies
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