ezoic

Friday, December 23, 2016

C programming step by step

-std=gnu99

to compile below, we need to use
 gcc -o 9th 9th.c -std=gnu99

since test is initialized in the for loop

#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

looking for a man

 I am a mid aged woman.  I was born in 1980. I do not have any kid. no complicated  dating before . I am looking for a man here for marriage...