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 336 views
1 answer 312 views
1 answer 379 views
1 answer 320 views
1 answer 293 views
...