Friday, August 7, 2009

C basics in Linux

I am learning the very basics of C programming in Linux. I will post some of them.

Compiling a C program,
"gcc -o try try.c"

Here, try.c is the actual C program. -o options is used for renaming the the executable file. If you dont use -o option, then by default a.out will be the name of the executable.

Running a C program,
"./try"

No comments:

Post a Comment