What will be the value of return ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
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; }

20th Jan 2021, 3:47 AM
Abhishek Kumar
Abhishek Kumar - avatar
1 Answer
20th Jan 2021, 4:10 AM
Ipang