Which of the following lines completes the above code?
arr[i][j] = 1 + arr[i][j].
arr[i][j] = 1 + arr[i - 1][j - 1].
arr[i][j] = arr[i - 1][j - 1].
arr[i][j] = arr[i][j].
(B) arr[i][j] = 1 + arr[i - 1][j - 1].
Explanation:
The line, arr[i][j] = 1 + arr[i - 1][j - 1] completes the above code.