How to check if a the compiler is ISO C Standard in C

1 Answer

0 votes
#if __STDC__ != 1
    #error "Not a standard ISO C compiler"
#endif
 
#include <stdio.h>

int main (void) {
    printf("The compiler is ISO C Standard");
}





/*
run:

The compiler is ISO C Standard

*/

 



answered Apr 25, 2023 by avibootz

Related questions

1 answer 158 views
2 answers 216 views
1 answer 138 views
2 answers 638 views
1 answer 147 views
147 views asked Apr 22, 2022 by avibootz
1 answer 232 views
1 answer 196 views
196 views asked Apr 22, 2022 by avibootz
...