Wednesday, July 31, 2013

How to Run C Program in Linux Terminal


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 Run C Program in Linux Terminal


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 Run C Program in Linux Terminal


No comments:

Post a Comment

Linux Tips and tricks,Online Linux Helpers