C Segmentation Fault While Using Dynamic Array In Struct Stack Overflow

C Segmentation Fault While Using Dynamic Array In Struct Stack Overflow