if i want to sort from 2nd element to 10th element of int arr[ ], will it be sort(2,11) and if so how is this fuction getting to know which array it has to sort
A doubt regarding sort function
@aryaman.harshu no it will be like this sort(a+1,a+12);
its inbuilt you just provide start and end address it will sort that part;
dont forget to hit like and mark resolved if cleared 
and how does it know which array it has to sort