I haven’t really understood the difference between

i++ and ++i

  • @vhstape@beehaw.org
    link
    fedilink
    211 months ago

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