Hello World in C
Last updated on
The simplist C program …
/* hello.c */
#include <stdio.h>
int
main() {
printf("Hello World\n");
return 0;
};
Outputs …
Hello World
Compile and run with GCC
gcc hello.c && ./a.out
or Clang
clang hello.c && ./a.out