Help me in solving SORTMCQ1 problem

My issue

Explain the answer in detail please.

My code

7597

Learning course: Sorting using C++
Problem Link: Multiple Choice Question Practice Problem in - CodeChef

@code_2004
cozz the array is sorted from index 1 till n

Correct Answer:

sort(A+1, A+N+1);

@code_2004 I don’t get it :thinking: