3 ms·
C arrays are just sugar for pointer arithmetic. [] just calculates the sum and deferences the result. arr[n] == *(arr + n) == n[arr] All these forms are valid
by initplus 4y ago
C arrays are just sugar for pointer arithmetic. [] just calculates the sum and deferences the result.
arr[n] == *(arr + n) == n[arr]
All these forms are valid C and gcc will happily compile them all without complaining.