2D array-Rotate Image c++

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??

code:- https://ide.codingblocks.com/s/447307

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: