I've got a 4x4 matrix and do stuff on it. After some tests, I was under the impression that the first coordinate is automatically incremented/decremented depending on the second's value, even though that seemed impossible. In order to make it clear, I ran the most basic test: printing.
To my surprise, it turns out that the (first) coordinate is kinda sorta automatically adjusted depending on the second's value, that is, the following code prints in one line all the matrix's elements with no segfault whatsoever:
for (int j = 0; j < 16; j++)
printf("%d ", mx[0][j])
The first thing my mind went off to was a potential optimization the compiler does, but the result was the same with the most basic settings.
Please explain what's going on.