0
I want to print the diagonal of the matrix.
But don't know to convert pointer into matrix and print the diagonals. https://code.sololearn.com/cIIJ57t0JXqG/?ref=app
7 odpowiedzi
+ 1
your function printdioganal() get one-dimension array int *, but you need two-dimension array int**
+ 1
~ swim ~ Thank you very much. I changed the printf and it worked. Thanks again
+ 1
~ swim ~ thank u. Since it got compiled, I thought it's the correct way
+ 1
~ swim ~ True. I couldn't test properly. Thanks .
+ 1
~ swim ~ yeah understood. Thanks a lot
0
How to convert one dimensional into two dimensional without any change in the fuction
0
~ swim ~ is there any other way? Without changing the fuction statement and doing some changes in the body of the function.