공용체 썸네일형 리스트형 [C언어] 구조체와 공용체 구조체(structure)서로 다른 자료형을 갖는 자료들의 모임하나로 자료형으로 정의하여 사용 (사용자 정의 자료형) #구조체 형식struct 구조체명 변수명1,변수명2,변수명3;struct score{ char no[4]; char name[8]; int kor; int eng; int math; int hist;}X,Y; //X,Y는 struct score의 구조체 변수typedef struct score{ char no[4]; char name[8]; int kor; int eng; int math; int hist;}jumsu; //struct score를 jumsu라는 새로운 자료형으로 정의jumsu X,Y;//또는struct person{ char name[8]; int age; char s.. 더보기 이전 1 다음