Belajar C: Compile Hello World
Buat Source Code
vi helloworld.c
#include <stdio.h> int main() { // printf() displays the string inside quotation printf("Hello, World!"); return 0; }
Compile
gcc helloworld.c -o a.out
Run
./a.out
Referensi
vi helloworld.c
#include <stdio.h> int main() { // printf() displays the string inside quotation printf("Hello, World!"); return 0; }
gcc helloworld.c -o a.out
./a.out