How to check if compiler is C17 in windows with C

1 Answer

0 votes
#include <stdio.h>

int main() {
    #if defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 201710L)  
        printf("Compiler is C17");
    #else
        printf("Compiler is not C17");
    #endif

    return 0;
}




/*
run:

Compiler is C17

*/

 



answered Apr 22, 2022 by avibootz

Related questions

2 answers 175 views
1 answer 106 views
1 answer 177 views
1 answer 107 views
1 answer 106 views
...