t_and_f.c 320 B

123456789101112
  1. /* t_and_f.c -- true and false values in C */
  2. #include <stdio.h>
  3. int main(void)
  4. {
  5. int true_val, false_val;
  6. true_val = (10 > 2); // value of a true relationship
  7. false_val = (10 == 2); // value of a false relationship
  8. printf("true = %d; false = %d \n", true_val, false_val);
  9. return 0;
  10. }