Posts by Marcos Vinicíus • 21 points
1 post
- 
		2 votes2 answers427 viewsA: Free() in struct with char arrayYou should use the free only in a dynamically allocated structure (with malloc/calloc). That is, the correct syntax would be: typedef struct data { int code; char name[50]; char feature[30]; }Data;…