Sunday, September 6, 2015

Compiling C Program on Ubantu

Ubuntu has inbuilt(default) c compiler with name GCC(GNU C Compiler) so we don't have to use external applications in order to compile our programs

Steps to compile c program
1 . Open Terminal using  Ctrl - Alt + T 
2. Locate your 'c' file (if your new to Ubuntu then learn about commands from here
3. compile your program using
   gcc program.c             (program is name of your file )
   ./a.out                           (to display output )

No comments:

Post a Comment