Let\'s say you have-
struct Person { char *name; int age; int height; int weight; };
If you do-
struct Pe
It will allocate 4 bytes for the name pointer, but no space for the "real" string. If you try to write there you will seg fault; you need to malloc (and free) it separately.
name
malloc
free
Using string (in C++) can save you some headache
string