the_tech_beast to C & C++ · 3 年前What 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 年前message-square8fedilinkfile-text
minus-squarefreelylinkfedilinkarrow-up2·3 年前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.
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!