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 178 views
2 answers 225 views
1 answer 145 views
2 answers 643 views
1 answer 158 views
158 views asked Apr 22, 2022 by avibootz
1 answer 245 views
1 answer 203 views
203 views asked Apr 22, 2022 by avibootz
...