22 ms·
I rarely see the comma operator used, but it can be quite handy, eg: if (turn_on() || reset(), turn_on()) { // try to turn it on. if fail, reset and try aga
by jacknews 6y ago
I rarely see the comma operator used, but it can be quite handy, eg:
if (turn_on() || reset(), turn_on()) { // try to turn it on. if fail, reset and try again
// it's on
}