hello world, 매개변수, 주석 (C89)

markyang92·2023년 1월 30일
0

C

목록 보기
1/7
post-thumbnail
#include <stdio.h>

int main(void){
	printf("hello world!\n");
    
    return 0;
}
$ gcc -std=c89 -W -Wall -pedantic-errors main.c -o main
$ ./main
hello world!

매개변수 (void)

  1. 함수 선언시,
  1. 함수 정의시,
  • 따라서 void 를 꼭 사용하자.

주석

  • C89에선 /* */ 만 가능하다.

profile
pllpokko@alumni.kaist.ac.kr

0개의 댓글