/* * evaltest1.c - test how C evaluates TRUE or FALSE */ #include int main(void) { if (1) // one is not zero and there for true { printf("TRUE when value of argumetn to if is 1\n"); } else { printf("FALSE when value of argument is not 1\n"); } if (0) // zero is fale { printf("TRUE when value of argumetn to if is 1\n"); } else { printf("FALSE when value of argument is not 1\n"); } if (193) // zero is fale { printf("TRUE when value of argumetn to if is 1\n"); } else { printf("FALSE when value of argument is not 1\n"); } if ("Z") // zero is fale { printf("TRUE when value of argumetn to if is 1\n"); } else { printf("FALSE when value of argument is not 1\n"); } if (7-7) // zero is fale { printf("TRUE when value of argumetn to if is 1\n"); } else { printf("FALSE when value of argument is not 1\n"); } return 0; }