Page 1 of 1

C. 1. Write a C program to perform the following operation on a 2D matrix. a. Add a row to the beginning of the matrix.

Posted: Fri May 20, 2022 5:48 pm
by answerhappygod
C 1 Write A C Program To Perform The Following Operation On A 2d Matrix A Add A Row To The Beginning Of The Matrix 1
C 1 Write A C Program To Perform The Following Operation On A 2d Matrix A Add A Row To The Beginning Of The Matrix 1 (102.07 KiB) Viewed 42 times
C. 1. Write a C program to perform the following operation on a 2D matrix. a. Add a row to the beginning of the matrix. b. Add a row to the end of the matrix. Add a row to any position of the matrix. d. Add a column to the beginning of the matrix. e. Add a column to the end of the matrix. f. Add a column to any position of the matrix. g. Delete a row from the beginning of the matrix. h. Delete a row from the end of the matrix. i. Delete a row from any position of the matrix. j. Delete a column from the beginning of the matrix. k. Delete a column from the end of the matrix. 1. Delete a column from any position of the matrix. You have to write 12 functions for the twelve operations given. Every function will have a 1D array as the parameter and will do the corresponding task accordingly. Your program should have an appropriate menu in the main function where the user will interact with the program. You also need to perform sanity check of the user inputs – e.g., if you are trying to add a new row of size 4 to a 2D matrix of size 3x3, the program should be able detect the discrepancy in the input and display appropriate message.