Introduction
First Program
#include <stdio.h>
int main()
{
printf("Rust is not good enough!");
return 0;
}Detect the version of C
#include <stdio.h>
int main(int argc, char **argv) {
#if __STDC_VERSION__ >= 201710L
printf("We are using C18!\n");
#elif __STDC_VERSION__ >= 201112L
printf("We are using C11!\n");
#elif __STDC_VERSION__ >= 199901L
printf("We are using C99!\n");
#else
printf("We are using C89/C90!\n");
#endif
return 0;
}Comments
Taking command line arguments
NULL "\0"
Modular programming
To do this:
Last updated