Question

A C function print_matrix(int rows, int cols, int matrix[rows][cols]) is designed to print a matrix. #include void print_matrix(int rows, int cols, int matrix[rows][cols]) {     for (int i = 0; i

A It will print the matrix correctly.
B It will print the matrix and then attempt to access memory out of bounds, potentially causing a segmentation fault.
C It will print only the first row.
D It will print only the first column.
E A compile-time error will occur due to incorrect loop bounds.
Practice Next

Hey! Ask a query