Comma in a code !

Hello everybody,

a line like this one :

b = c,c = c+1;

should not compile, should it ?? I've never seen a comma in an Arduino code before...

And yet it does ! I've got an exemple full of this stuff...and I'm unable to figure what's the result of such a mess :astonished:

Is it a way to combine two instructions on the same line ???

Any clue ?

Thank you !

Part of C, not often used:

-br

not often used

I disagree - it is often used in "for" expressions in initialisation and post-loop manipulation of variables.

OK, thank you all...

I'll remember never to use that henceforth :roll_eyes:

I'll remember never to use that henceforth

Never say "never" - the construct may come in useful someday.
File it under "Later".