Curly bracket programming language: Difference between revisions

Content deleted Content added
History: “One common part of curly bracket style is the common style…” just sounds dumb and redundant to me.
Statement blocks: I don’t think an encyclopedia is qualified to make recommendations… need a source
Line 25:
for(int i=0;i<10;i++)'''{'''printf("%d",i);doTask(i);'''}'''
 
but this is not recommended,{{Citation needed|date=October 2009}} as it becomes difficult to read after the program grows beyond a few statements.
 
A popular way to work with curly braces is with the [[Indent style#K&R style|K&R]] style: