Yes, it is guaranteed by the standard.
According to standard C11 document, chapter 6.5.8, paragraph 6, [Relational operator]
Each of the operators < (less), > (more), <= (less than or equal) and >= (greater than or equal) should give 1 if the specified relation is true and 0 if it is false . The result is of type int .
Update: same chapter and paragraph for C99 .
source share