[ create a new paste ] login | about

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

C++, pasted on Nov 19:
1
2
3
4
5
6
7
8
9
10
11
12
#include <stdio.h>

int test(bool)
  {
  return sizeof(bool) == sizeof(int);
  }

int main(void)
  {
  puts(test(0) ? "C" : "C++");
  return 0;
  }


Output:
1
C++


Create a new paste based on this one


Comments: