given a matrix, print out the diagonals
Anonymous
void printMatrixDiagonal(int mat[MAX][MAX], int n) { // Initialize indexes of element to be printed next int i = 0, j = 0 ; // Direction is initially from down to up bool isUp = true; // Traverse the matrix till all elements get traversed for (int k=0; k=0 && j= 0 && i
Check out your Company Bowl for anonymous work chats.