함수 (1) 썸네일형 리스트형 27. 구조체 와 함수 Test_head.h #include typedef struct { int a; int b; }str_val; main.c #include "Test_head.h" void test1(str_val str_val1){ int test1_v1 = str_val1.a; printf("str_val = %d \r\n" , test1_v1); } void main(void){ str_val str_val2; str_val2.a = 10; test1(str_val2); } 이전 1 다음