Albin Jose@suppo.fi to Programming@programming.dev · 11 months agoWhat will happen if we put a semi-colon after a for loop in C++?message-square20fedilinkarrow-up115arrow-down12
arrow-up113arrow-down1message-squareWhat will happen if we put a semi-colon after a for loop in C++?Albin Jose@suppo.fi to Programming@programming.dev · 11 months agomessage-square20fedilink
minus-squarepelya@lemmy.worldlinkfedilinkarrow-up8arrow-down2·11 months agoPro tip: for(;;) takes less to type thann while(true)
minus-squaredeegeese@sopuli.xyzlinkfedilinkarrow-up20·11 months 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 (;;)