Categories
c

How to Compile C program in linux.

In linux normally we go to that directory by entering command
cd /destination
then type command
$cc source.c -o source
then a file called source is created which is the program after compiling source code called source.c.
You can run the program now by entering the command
$./source