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 Resposta
+ 1
Check out the reference
https://en.cppreference.com/w/cpp/algorithm/lexicographical_compare