Difference between revisions of "Belajar C: Compile Hello World"
		
		
		
		
		
		Jump to navigation
		Jump to search
		
				
		
		
	
Onnowpurbo (talk | contribs)  | 
				Onnowpurbo (talk | contribs)   (→Run)  | 
				||
| Line 18: | Line 18: | ||
==Run==  | ==Run==  | ||
| − | |||
  ./a.out  |   ./a.out  | ||
| − | |||
==Referensi==  | ==Referensi==  | ||
Latest revision as of 09: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