Skip to main content

01. hello world 출력

Hello world 출력

모든 언어의 시작이 아닐까


개발 환경은 Ubuntu를 설치했다.

sudo apt-get update

위 명령어를 통해 업데이트를 진행하고


vi hello.c

위 명령어를 통해 c 언어 파일을 생성한다.


image.png

#include <stdio.h>

int main(){
  printf("hello World\n");
  return 1;
}

위 명령어를 삽입 후

cc hello.c

명령어를