Albin7326@suppo.fi to Programming@programming.dev · 1 year agoWhat will happen if we put a semi-colon after a for loop in C++?message-squaremessage-square14fedilinkarrow-up119arrow-down15
arrow-up114arrow-down1message-squareWhat will happen if we put a semi-colon after a for loop in C++?Albin7326@suppo.fi to Programming@programming.dev · 1 year agomessage-square14fedilink
minus-squarevext01@lemmy.sdf.orglinkfedilinkarrow-up12·1 year agoNow slap some commas in there and you can have side effects in the loop header. Guaranteed to confuse :)
Now slap some commas in there and you can have side effects in the loop header.
Guaranteed to confuse :)