15. (B) When r is 0, c goes from 0 to 0, and just one element, mat[0][0], will be printed. When r is 1, c goes from 0 to 1, and two elements, mat[1][0] and mat[1][1], will be printed, and so on. When r is 3, all four elements of row 3 will be printed.