hello.c
#include <stdio.h>
int main(void) {
printf("Hello World!\n");
return 0;
}
Compile hello.c
file with gcc
$ gcc hello.c -o hello
Run the compiled binary hello
$ ./hello
Output => Hello World!
Comments
#include <stdio.h>
int main(void) {
printf("Hello World!\n");
return 0;
}
Compile hello.c
file with gcc
$ gcc hello.c -o hello
Run the compiled binary hello
$ ./hello
Output => Hello World!