here size of the array is 5 and input given is 1 10 5 4 3 after program execution output is 10 5 4 1 and loop starts from position one then why 3 is not there in the output
Priority queue STL
here size of the array is 5 and input given is 1 10 5 4 3 after program execution output is 10 5 4 1 and loop starts from position one then why 3 is not there in the output
run ur loop from i=0