블로그 이미지
송시혁

calendar

1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31

Notice

Tag

Recent Post

Recent Comment

Recent Trackback

Archive


#include <stdio.h>
void test(int A)
{
  printf("hello\n");
  printf("hello\n");
  printf("%d\n", A);
  printf("hello\n");
  printf("hello\n");
}  



int main()
{
  test(1);  
  test(2);  


  return 0;  
}

함수 형식 = 함수 사용자 지정이름(변수)

void함수에 변수 선언. main()함수가 void()함수를 호출하여

 아래의 결과를 나타낸다.

 

posted by 송시혁