String sort question

else if(a.size() => b.size() && a.substr(0,b.size()) == b) return true;

some error is showing : error: expected primary-expression before ‘>’ token
else if(a.size() => b.size() && a.substr(0,b.size()) == b) return true;

if i am changing the “=>” to “>=” the code is working fine. How is this happening??

Its because of precedence and syntax.

1 Like