PL/C

typedef 쓰기

SweetDev 2018. 10. 5. 11:37

struct student{};는 기니까

typedef 쓸 수 있다!

typedef struct {

char name[20];

int stud_id;

char year;

char major[20];

}STUD;


STUD s1, s2;


구조체 선언하면서 변수 함께 선언 가능


struct{

///

}s1, s2;