// Using std::nth_element with n as 6 std::nth_element(v,v+5,v+8,comp); // Since, n is 6 so 6th element should be the same // as the sixth element present if we sort this array // Sorted Array /* 2 3 10 23 33 45 47 56 */ for(i=0;i<8;++i){ cout<<v[i]<<"...