3 ms·
it is! And I just now realized that I have seen it used many times before, in for loops and variable declarations. It just seems so foreign and out of place wh
by Klathmon 7y ago
it is! And I just now realized that I have seen it used many times before, in for loops and variable declarations.
It just seems so foreign and out of place when used outside of those instances though, and for me at least the purpose of it wasn't intuitive at all!
- mturmon 7y agoIn C, the commas are also used in macro definitions where you need multiple statements to be output by the macro, but can’t use semicolons because the macro might expand in a context where only one statement is expected. In both the OP and this one,it comes off as clever but tricky.