fork download
  1. // Online C compiler to run C program online
  2. #include <stdio.h>
  3.  
  4. int main() {
  5. // Write C code here
  6. printf("Try programiz.pro");
  7.  
  8. #if defined __STDC_VERSION__
  9. if(__STDC_VERSION__ == 202000)
  10. printf("We are using C23!\n");
  11. else if (__STDC_VERSION__ == 201710L)
  12. printf("We are using C17!\n");
  13. else if (__STDC_VERSION__ == 201112L)
  14. printf("We are using C11!\n");
  15. else if (__STDC_VERSION__ == 199901L)
  16. printf("We are using C99!\n");
  17. #else
  18. printf("We are using C90!\n");
  19. #endif
  20.  
  21. return 0;
  22. }
Success #stdin #stdout 0s 5288KB
stdin
1
34666321
72775444
stdout
Try programiz.proWe are using C11!