Thursday, November 14, 2013

How To Compile and Run C Program In Linux

How to Run C Program in Linux Terminal

C : "gcc -o outputfilename programmename.c" will compile prognamename.c  and the object file created will be called filename.

How To Compile and Run C Program In Linux


It can be run by typing "./filename".

If no “ -o outputfilename “ is not given then the default output file is a.out and can be run by ./a.out

How To Compile and Run C Program In Linux


No comments:

Post a Comment

Linux Tips and tricks,Online Linux Helpers