Run C language Programs in Linux / Ubuntu.

Insha.
Feb 24, 2021

--

Step 1 — Write C program by >>vim Helloworld.c

#include<stdio.h>
int main(){
printf("Hello from C Program.");
}

Step 2 — Save the Helloworld.c by typing :wq

Step3 — Create Compile file

gcc -o Helloworld Helloworld.c

Step4 — Execute the build compile file

./Helloworld

--

--

Insha.
Insha.

No responses yet