5
0xTJ
6y

I've only just discovered the C comma operator. I don't know how I completely missed it for so long.

Comments
  • 1
    About the only place where I actually use that is in for loops when I need to initialise more than the loop counter and/or do more than the loop counter increase at the end.

    The other use of having side effects in the same statement tends to be difficult to read, especially when combined with the ? operator.

    What do you use it for?
  • 0
    @njpugh90 I don't think that first thing is an example of the comma operator, but rather a comma as a seperator
Add Comment