[ create a new paste ] login | about

Link: http://codepad.org/gd8GiuDY    [ raw code | output | fork ]

AaronMiller - C, pasted on Sep 27:
1
2
3
4
5
6
7
8
9
10
11
#ifndef __bool_true_false_are_defined
# define __bool_true_false_are_defined 1
typedef enum { false=0, true=1 } bool;
#endif

bool is_true=true;

int main() {
  printf("is_true? %s\n", is_true?"true":"false");
  return 0;
}


Output:
1
is_true? true


Create a new paste based on this one


Comments: