Find the maximum and minimum elements of the matrix and swap the corresponding row and column (row for the maximum element, column - for the minimum)
Find the maximum and minimum elements of the matrix and swap the corresponding row and column (row for the maximum element, column - for the minimum)
Last edited by fsbf; 10-28-2020 at 12:48 PM.
to convert two-dimensional array to one-dimensional
No thoughts at all as to how to go about this?
Just dumping your assignment isn't going to make us write all the code for you.
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.