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; }
1
probably compiled as C++