How Do I Compile and Run C Program in Ubuntu?
Contents How Do I Run a Program in Ubuntu? Launch Applications with the Keyboard Open the Activities Overview by Pressing the Super Key. Start Typing the Name...
Contents
How do I run a program in Ubuntu?
Launch applications with the keyboard
- Open the Activities Overview by pressing the Super key.
- Start typing the name of the application you want to launch. Searching for the application begins instantly.
- Once the icon of the application is shown and selected, press Enter to launch the application.
How do I code C in Ubuntu?
How to Write C Program in Ubuntu
- Open a text editor (gedit, VI). Command: gedit prog.c.
- Write a C program. Example: #include<stdio.h> int main(){ printf(“Hello”); return 0;}
- Save C program with .c extension. Example: prog.c.
- Compile C program. Command: gcc prog.c -o prog.
- Run/ Execute. Command: ./prog.