the_tech_beast to C & C++ · 3 years agoWhat is the difference between ++i and i++?message-squaremessage-square8fedilinkarrow-up111arrow-down10file-text
arrow-up111arrow-down1message-squareWhat is the difference between ++i and i++?the_tech_beast to C & C++ · 3 years agomessage-square8fedilinkfile-text
minus-squarefreelylinkfedilinkarrow-up2·3 years agoIf both were the only statement, then yes they are equivalent because nothing is being done with the returned value either way. The difference only really matters if you’re using the returned value.
If both were the only statement, then yes they are equivalent because nothing is being done with the returned value either way. The difference only really matters if you’re using the returned value.
yay! I’m slowly making progress!