Answers for "comparator to sort function cpp"

C++
0

comparator in sort c++

bool com_fun(int a,int b){
	if(a<b) return true;
	else return false;
}

sort(arr,arr+n.com_fun);
Posted by: Guest on October-25-2021

Code answers related to "comparator to sort function cpp"

Browse Popular Code Answers by Language