Faculty Support Log Oul Write C code to complete the function printMatrixCol. Use the pointer/addressing methods to disp
Posted: Tue Jul 12, 2022 8:16 am
Faculty Support Log Oul Write C code to complete the function printMatrixCol. Use the pointer/addressing methods to display the ar within co Index. la: array pointer, m: # of rows, n: # of columns void printMatrixCol(int *a, int m, int n, int collndex) { int row, 1 int ptr, printf("\nMatrix col index: %d\n', colindex); ADD YOUR CODE HERE main(){ int m=3, n = 4 int a[3][4] = ( (0, 1, 2, 3), (4, 5, 6, 7), (8, 9, 10, 11}); printMatrixCol(&a[0][0], m, n, 2); /OUTPUT Matrix col index: 2 26 10 1