[ create a new paste ] login | about

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

pmg - C++, pasted on Mar 10:
1
2
3
4
5
6
7
8
9
10
#include <stdio.h>

int main(void) {
  if (sizeof 'a' == sizeof (int)) {
    printf("probably compiled as C\n");
  } else {
    printf("probably compiled as C++\n");
  }
  return 0;
}


Output:
1
probably compiled as C++


Create a new paste based on this one


Comments: