Return value of a boolean expression in C
问题 For reasons that are not worth mentioning, I want to know if there's a standard defined value for boolean expressions. E.g. int foo () { return (bar > 5); } The context is that I'm concerned that our team defined TRUE as something different than 1, and I'm concerned that someone may do: if (foo() == TRUE) { /* do stuff */ } I know that the best option would be to simply do if (foo()) but you never know. Is there a defined standard value for boolean expressions or is it up to the compiler? If