c++ - Call function1 || function2 syntax error -
i use || between 2 function calls can result of or of calls. here tried:
bool ui() || bool ul() however, getting error saying expected initializer before token.
when calling function, don't put function's return type in call. following should work:
bool result = ui() || ul();
Comments
Post a Comment