Albin Jose@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-square21fedilinkarrow-up119arrow-down15
arrow-up114arrow-down1message-squareWhat will happen if we put a semi-colon after a for loop in C++?Albin Jose@suppo.fi to Programming@programming.dev · 1 year agomessage-square21fedilink
minus-squarepelya@lemmy.worldlinkfedilinkarrow-up8arrow-down2·1 year agoPro tip: for(;;) takes less to type thann while(true)
minus-squaredeegeese@sopuli.xyzlinkfedilinkarrow-up20·1 year agoMy programs cause enough tears on their own without having to put them in the code itself.
Pro tip:
for(;;)
takes less to type thannwhile(true)
My programs cause enough tears on their own without having to put them in the code itself.
#define EVER (;;)