Belajar C: Compile Hello World: Difference between revisions
From OnnoCenterWiki
Jump to navigationJump to search
Onnowpurbo (talk | contribs) Created page with "==Buat Source Code== vi helloworld.c #include <stdio.h> int main() { // printf() displays the string inside quotation printf("Hello, World!"); return 0; }..." |
Onnowpurbo (talk | contribs) |
||
| (One intermediate revision by the same user not shown) | |||
| Line 18: | Line 18: | ||
==Run== | ==Run== | ||
./a.out | ./a.out | ||
==Referensi== | ==Referensi== | ||
| Line 30: | Line 28: | ||
* [[Belajar C]] | * [[Belajar C]] | ||
* [[Programming]] | |||
Latest revision as of 02:15, 23 January 2021
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