Page 1 of 1

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
by answerhappygod
Faculty Support Log Oul Write C Code To Complete The Function Printmatrixcol Use The Pointer Addressing Methods To Disp 1
Faculty Support Log Oul Write C Code To Complete The Function Printmatrixcol Use The Pointer Addressing Methods To Disp 1 (45.01 KiB) Viewed 37 times
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