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 167 views
2 answers 222 views
1 answer 143 views
2 answers 642 views
1 answer 156 views
156 views asked Apr 22, 2022 by avibootz
1 answer 240 views
1 answer 202 views
202 views asked Apr 22, 2022 by avibootz
...