Professional Documents
Culture Documents
Linux
Linux
#include <stdio.h>
int main(void){
printf("My first C program\n");
return 0;
}
after program is over :wq(it is save and quit) enter.the terminal will appear.th
en as follows
To compile C program first.c,
gcc first.c
OR
cc first.c
To execute program first, enter:
./first
Output:
My first C program