#include <stdio.h>
int main() {
int d[][3][2] = { 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16 };
int i = -1;
int j;
j = d[i++][++i][++i];
printf("%d", j);
return 0;
}
How does i
not equal to -1
in this code?
j = d[i++][++i][++i];
^^^^
When you running this code, you may be able to see the result as 4
.
I just wondered about how i
does not equal -1
in the above case. Thanks.