C语言真条件实例 C语言浮点数比较 C语言真条件实例 C语言真条件实例 /* t_and_f.c -- true and false values in C */ #include <stdio.h> int main(void) { int true_val, false_val; true_val = (10 > 2); // value of a true relationship false_val = (10 == 2); // value of a false relationship printf("true = %d; false = %d \n", true_val, false_val); return 0; } C语言浮点数比较 C语言真条件实例