char* head = NULL;


head = (char)malloc(sizeof(char) * 100);

memset(head, 0, 100);


gcc에서는 이상없던데


VS에서는 memset에서 액세스위반 뜨네요.


원래 저렇게 하면 안되나요?