The code snippet iterates through a 2D matrix. (N is the size of the matrix).
for (i=0; i< N; i++) // outer loop for Rows for (j=0; j < N ; j++) // Inner