A ruler with the logo for the Lua Programming language

  • ezchili@iusearchlinux.fyi
    link
    fedilink
    arrow-up
    2
    ·
    edit-2
    2 years ago

    There’s a syntax for indexing starting from 0, it’s

    *(&arr+0) to *(&arr+(n-1))

    For the rest of us who are manipulating sets of values and not offsets on pointers and aren’t delusionally attached to conventions, there’s arr[1] to arr[n]