Open your favourite terminal window on ubuntu.
(Mine happens to be Xterm :)
Then type gedit with the name of the program with a .c at the end.
When the text editor opens, code :)
After writing your piece of code, you can save the file and exit.
Then you can run it by typing the following in your terminal:
(Mine happens to be Xterm :)
Then type gedit with the name of the program with a .c at the end.
If you love the 'nano' text editor, you may type:
When the text editor opens, code :)
Here's an example(Hello World)
After writing your piece of code, you can save the file and exit.
If you're using nano text editor, just hit Ctrl + O to save the file and Ctrl + X to exit the text editor.Then you must compile the file by typing:
Then you can run it by typing the following in your terminal: