This line:
printf("Person's name : %s\t Person's age : %d\n",pp->name, pp->age);
dereferences the person
struct. However, your .h
file includes merely a forward declaration.
Either put the print function into person.c
, or move the full struct
definition into person.h
.