Contact: aviboots(AT)netvision.net.il
41,551 questions
54,171 answers
573 users
#include <stdio.h> #include <stdbool.h> int main(void) { double d = 121.871; bool b = d != 0.0; fputs(b ? "true" : "false", stdout); return 0; } /* run: true */
#include <stdio.h> #include <stdbool.h> int main(void) { double d = 0.0; bool b = d != 0.0; fputs(b ? "true" : "false", stdout); return 0; } /* run: false */