I haven’t really understood the difference between

i++ and ++i

  • vhstape@beehaw.org
    link
    fedilink
    arrow-up
    1
    ·
    2 years ago

    i++ gives the current value of i and then increments it, while ++i increments it and returns the new value