I always though that if I declare these three variables that they will all have the value 0
int column, row, index = 0;
Bu
As @Josh said, the correct answer is:
int column = 0, row = 0, index = 0;
You'll need to watch out for the same thing with pointers. This:
int* a, b, c;
Is equivalent to:
int *a; int b; int c;