fork download
  1. #include <stdio.h>
  2.  
  3. int isCpp()
  4. {
  5. #ifdef true
  6. #undef true
  7. #endif
  8.  
  9. #if true
  10. return 1;
  11. #else
  12. return 0;
  13. #endif
  14. }
  15.  
  16. int main(void)
  17. {
  18. if (isCpp()) {
  19. puts("C++");
  20. } else {
  21. puts("C");
  22. }
  23. return 0;
  24. }
  25.  
Success #stdin #stdout 0s 9424KB
stdin
Standard input is empty
stdout
C