Rotate image anticlockwise 90 degree

why there is error in producing output?

In your rotateimage() function, there’s no variable name rotate image. Moreover you are calling rotateimage() In for loop of I & j multiple times which isn’t logically correct. I would suggest you to see it’s explanation video given in course.

i have watched that but on using display function it was showing display function not declared in this scope.can u correct my code where i am getting wrong.

After correcting your code, it’s showing this output https://ide.codingblocks.com/s/368890
So your logic is also not correct for rotating, try to figure it out. If still not able to do it. I’ll provide you with code :slight_smile:


i have checked my whole code.but i could not figure out my error.can u tell where i am getting wrong? :neutral_face:

Check this @lovely

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.