I haven’t really understood the difference between

i++ and ++i

  • freely
    link
    fedilink
    arrow-up
    2
    ·
    3 years ago

    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.