Unusual array index syntax can lead to confusion and potential bugs in the code.
Using the correct array index syntax X[Y]
ensures that the code is
more readable and less prone to bugs. It is important to use the standard array
index syntax to maintain clarity and consistency in the codebase.
Consider putting the index inside the square braces, while the array/pointer left of it.
void f(int *X, int Y) {
Y[X] = 0;
}
void f(int *X, int Y) {
X[Y] = 0;
}