How To Run C Program in Linux
Its Very simple to compile and execute C Program in Linux EnvironmentStep 1: Create a New file
Open the Terminal and create new program in C in Linux
To Create a new File in Linux For C Program
vi filename.c
eg : vi firstcpgm.c
Then type a simple Program and press Esc and wq
Step 2: Compile C Program in Linux
To Compile C program type the below command in Terminal
cc filename.c
Eg. cc firstcpgm.c
If u have any error in program it will display after execute the above program
if u program was no error the run the program
Step 3: Run C Program in Linux
Finally clearing the error in program execute the below command to get the program output
./a.out
That sol finally we got the output for the program
Easy to learn thanks foe sharing
ReplyDeletenice blog :)
ReplyDeleteExcellent for beginners
Thanks The Time Traveller
DeleteNice Site :)
ReplyDeleteEasy To Learn For New Comers
By
Hikma