Contact: aviboots(AT)netvision.net.il
40,769 questions
53,151 answers
573 users
#include <stdio.h> #include <stdbool.h> int main(void) { float f = 0.0; bool b = f != 0.0; fputs(b ? "true" : "false", stdout); return 0; } /* run: false */
#include <stdio.h> #include <stdbool.h> int main(void) { float f = 3.14; bool b = f != 0.0; fputs(b ? "true" : "false", stdout); return 0; } /* run: true */