Extension is .c
gcc -o file.c
c file.c
-------------------------
#Hello World C program (first compile, then execute)
#include <stdio.h>
int main(){
/* My first program in C */
printf("Hello, World! \n");
return 0;
}
gcc -o main *.c
Hello, World!
-------------------------
gcc -o file.c
c file.c
-------------------------
#Hello World C program (first compile, then execute)
#include <stdio.h>
int main(){
/* My first program in C */
printf("Hello, World! \n");
return 0;
}
gcc -o main *.c
Hello, World!
-------------------------
No comments:
Post a Comment