in function rotate_stl how reverse(a[i],a[i]+n); is working ?? and reversing the elements of matrix
what a[i]+n means or define??
in function rotate_stl how reverse(a[i],a[i]+n); is working ?? and reversing the elements of matrix
what a[i]+n means or define??
Hello @dasvishal60 reverse(a[i],a[i]+n) reversing the row at a[i] this means that for loop will go to the first element of every row and then it will reverse the elements in that row which are ther in the n columns at that particular row.
in this way reverse is working.
you can see how it is happening here: