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 167 views
2 answers 214 views
1 answer 136 views
2 answers 634 views
1 answer 141 views
141 views asked Apr 22, 2022 by avibootz
1 answer 228 views
1 answer 191 views
191 views asked Apr 22, 2022 by avibootz
...