How to check if compiler conforms to ISO Standard C with C

1 Answer

0 votes
#include <stdio.h>
 
int main(void) {
    #if defined(__STDC__)
        #if (__STDC__ == 1)
            printf("Compiler conforms to ISO Standard C");
        #else
            printf("Compiler not conforms to ISO Standard C");
        #endif
    #else 
        printf("__STDC__ is not defined");
    #endif
  
    return 0;
}




/*
run:

Compiler conforms to ISO Standard C

*/

 



answered Apr 21, 2022 by avibootz

Related questions

1 answer 259 views
2 answers 329 views
1 answer 219 views
2 answers 762 views
1 answer 233 views
233 views asked Apr 22, 2022 by avibootz
1 answer 336 views
1 answer 296 views
296 views asked Apr 22, 2022 by avibootz
...