How could I achieve something like this ...
int main(void)
{
  if (f(x) == (a || b))
  {
     puts("Success");
  }
  return (0);
}
This would print Success if the return of f(x) is equal to a or b. I know it is possible to store it in a variable but my question is: "Could something like this be done by calling the f(x) function only once without using a variable?"
Edit 1: I'm not allowed to use the switch statement for this assignment
Edit 2: Could I set a range with only one expression like this?
if ( 2 < f(x) < 5)
Would this be valid (return type is int)?
 
     
     
     
    