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 151 views
2 answers 215 views
1 answer 137 views
2 answers 634 views
1 answer 142 views
142 views asked Apr 22, 2022 by avibootz
1 answer 228 views
2 answers 193 views
...