Rotate image problem

2nd loop marked in the code is not working for swapping the rows.

Hi vipin,
in 2nd loop use for(int i=0;i<n/2;i++)

Reply if resolved :slight_smile:

1 Like