-std=gnu99
to compile below, we need to use
gcc -o 9th 9th.c -std=gnu99
#include <stdio.h>
void main ()
{
for ( int test=10;test>0;test=test-2)
{printf("test=%d\n",test);
}}
There are some other c compile options, like previously we mentioned -lm.
No comments:
Post a Comment