Brackets or no brackets for one-line statements ?

Posted by Danvil on Stack Overflow See other posts from Stack Overflow or by Danvil
Published on 2010-04-26T16:12:39Z Indexed on 2010/04/26 16:13 UTC
Read the original article Hit count: 244

Filed under:
|
|

What do you prefer?

if(condition1)
   foo();

or

if(condition1) {
  foo();
}

Same for the for loop or other...

© Stack Overflow or respective owner

Related posts about c

    Related posts about c++