Ad
  • Custom User Avatar

    There is this warning when compiling this solution:

    solution.c:10:1: warning: control may reach end of non-void function [-Wreturn-type]
    }
    ^
    1 warning generated.
    

    This solution is not valid, it introduces UB into the program.

  • Custom User Avatar

    So I might be missing something but how does it return false if no conditions are true? Is that something intrinsic to c?