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-square13fedilinkarrow-up119arrow-down14
arrow-up115arrow-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-square13fedilink
minus-squarepelya@lemmy.worldlinkfedilinkarrow-up8arrow-down2·1 year agoPro tip: for(;;) takes less to type thann while(true)
minus-squaredeegeese@sopuli.xyzlinkfedilinkarrow-up19·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 (;;)