About sorted the array assignments

https://ide.codingblocks.com/s/82085.
This gives correct answer in two cases and rest of the cases are gives wrong answe


small changes are made.

if(sorted(a+1,n)==1)

why you did this at line no 21. why you made sorte… equal to 1
please explain

it is only used for checking whether the result is true or false as true(stands for 1) and false(stands for 0) and if result is 1 i.e true ans is “true” otherwise “false”