Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

3
  • 1
    Note that this is a non-standard GCC extension called a statement expression. Commented Aug 17, 2012 at 20:04
  • This is a good idea, but not all compilers support this feature. I'm also not sure if this mechanism is part of ANSI C (I'm sure I'll be corrected on the matter shortly). Commented Aug 17, 2012 at 20:05
  • @TRISAbits, no, it's not and no, not all will. That's what GCCism means ;) Commented Aug 17, 2012 at 20:06