What will be the value of return ? | SoloLearn: Learn to code for FREE!

0

What will be the value of return ?

bool compare(char c1, char c2){ return ______________________; //LINE-1 } int main(){ char arr1[20], arr2[20]; cin >> arr1; cin >> arr2; cout << lexicographical_compare(arr1, arr1+strlen(arr1), arr2, arr2+strlen(arr2), compare); return 0; }

1/20/2021 3:47:40 AM

Abhishek Kumar

1 Answer

New Answer

+1

Check out the reference https://en.cppreference.com/w/cpp/algorithm/lexicographical_compare