-->


Running C program

Open terminal window in Linux 
 
 


            







 $gedit filename with extension ( .C )
 Ex $ gedit filename.c 
Press Enter<center>

</center>
  
          save the file 
   
       Go to terminal window
           for compilation of c program type
            $ cc filename.c
 
           to run c program 
           $ ./a.out
  
          output

No comments:

Post a Comment

Basic structure of c program