Hi!, I'm looking for a best and efficient way for returning value "True" or false in C programming, I thought it's a simple way, but apparently it's not, because my compiler for instance isn't used or recognized in "#include<stdbool.h>", so I tried like writing return 1 which is defined generally as true but its not working for me.
lets say I want to write a code that returns true if I entered equivalent numbers, the code that I wrote for example is :
it's compiling finely but the value of "True" or "false" if I input two equivalent numbers isn't appeared at all!!Code:int main() { int h,l; scanf("%d%d",&l,&h); if (h==l) return 1; return 0; }
Any help please for that? and how to let the boolean value (true or false) to be appeared on the screen(without using printf).
thanks beforehand.