|
|
|
|
|
by adastra22
1115 days ago
|
|
Those are syntactic sugar for the same thing though. Array[5] is just shorthand for *(Array + 5), which is why 5[Array] also works (because addition is commutative). Note that C does have strong conventions, such as that strings are terminated by a zero byte. Nothing in the language demands that, it’s just a convention! C could adopt better conventions. |
|
Stated the same on HN earlier, but someone pointed out that literal strings are ASCIIZ.