It is a great experience executing C programs in the linux terminal. All you need is to learn a few commands as GCC comes inbuilt with Ubuntu 15.10 distribution.
Step-1
Write your C program.
Step-2
Open the terminal. Navigate to the file location and execute the following commands:
$gcc -o love ubuntu_love.c
(This is the compilation process. It invokes gcc compiler and generates the executable file i.e. 'love' in our case)
$./love
(This is the execution process.)
No comments:
Post a Comment