Belajar C: Compile Hello World

From OnnoWiki
Revision as of 09:15, 23 January 2021 by Onnowpurbo (talk | contribs) (→‎Run)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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


Pranala Menarik