(A, A+N ) is some syntax for sort function or something else , i mean why we are using A+N and not N
A=0 and N= Let’s say 5
so is it , (0+5 = 5) ??
(A, A+N ) is some syntax for sort function or something else , i mean why we are using A+N and not N
A=0 and N= Let’s say 5
so is it , (0+5 = 5) ??
hello @piyushkumar999999 we use inbuilt sort like sort(A,A+N) only in this we pass the array size as N .
like from first we have till first +N elements present in the array .
if you feel that your doubt is cleared please mark this doubt as resolved .
Happy Learning !!
My question is simply why (A+N) and what actually (A+N) is …?
@piyushkumar999999 int sort function we have to pass the start address and the end address and A+N is the end address of the array .
array is sorted with the help of the starting address and the ending address .
Happy Learning !!