Albin Jose@suppo.fi to Programming · 2 years agoWhat will happen if we put a semi-colon after a for loop in C++?message-squaremessage-square17linkfedilinkarrow-up120arrow-down15
arrow-up115arrow-down1message-squareWhat will happen if we put a semi-colon after a for loop in C++?Albin Jose@suppo.fi to Programming · 2 years agomessage-square17linkfedilink
minus-squarevext01@lemmy.sdf.orglinkfedilinkarrow-up13·2 years 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 :)