Possible Duplicate:
Why are there sometimes meaningless do/while and if/else statements in C/C++ macros?

I’ve been seeing that expression for over 10 years now. I’ve been trying to think what it’s good for. Since I see it mostly in #defines, I assume it’s good for inner scope variable declaration and for using breaks (instead of gotos.)

Is it good for anything else? Do you use it?

5 Answers
5

Tags:

Leave a Reply

Your email address will not be published. Required fields are marked *