Click here to Skip to main content
13,298,655 members (46,996 online)
Click here to Skip to main content
Alternatives (2)
Add your own
alternative version

Tagged as



1 bookmarked
Posted 10 Feb 2011

"if" with no code block parenthesis

, 12 Feb 2011
Avoid using "if" with no code block parenthesis


Members may post updates or alternatives to this current article in order to show different approaches or add new features.

17 Feb 2011
Whatever, I agree with you, it would be worse in C / C++ code using macros.Suppose you got a multiline macro like this:#define some_macro \ do_something_1(); \ do_something_2();And using this macro without parenthesis:if(...) some_macro;orfor(...) ...
10 Feb 2011
Andrew Rissing
Always review all changes before submitting them. Especially, if using a global find and replace.


This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Author

Software Developer Symantec Corporation
India India
No Biography provided

| | Privacy | Terms of Use | Mobile
Web02 | 2.8.171207.1 | Last Updated 13 Feb 2011
Article Copyright 2011 by PrafullaVedante
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid