I haven’t really understood the difference between

i++ and ++i

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

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