Gcc hello world 실습

Jmnote bot (토론 | 기여)님의 2020년 11월 2일 (월) 02:41 판 (봇: 자동으로 텍스트 교체 (-source +syntaxhighlight))
(차이) ← 이전 판 | 최신판 (차이) | 다음 판 → (차이)

1 개요[ | ]

gcc hello world
Console
Copy
[root@zetawiki ~]# cat hello.c
C
Copy
#include <stdio.h>
 
int main()
{
	printf("Hello, world!\n");
	return 0;
}
Console
Copy
root@zetawiki:~# gcc hello.c -o hello
root@zetawiki:~# ./hello 
Hello, world!
Console
Copy
root@zetawiki:~# rm -f hello
root@zetawiki:~# cc hello.c -o hello
root@zetawiki:~# ./hello 
Hello, world!

2 같이 보기[ | ]