Answers for "comparotr sorting c++"

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

Browse Popular Code Answers by Language