didnt understood this part :
bool compare (string a,string b)
{ return a>b;}
Strings STL video(C++ LAUNCHPAD COURSE)
whats thie diff bw a>b and a<b
@Vidhuverma in this we are passing 2 string to a function and returning a boolean value after comparing the strings.
Lets say we enter two strings a and b, if a is greater than b then the function returns “true”, but if b is greater than a then the function will return “false”.
Hope this helps.
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.