Why does it keep crashing?

You don’t include & (address) operator for %s (strings) while reading. For example, in function getClient, use
printf("Enter employee name: ");
scanf("%s", pemp->ename);

This is one of the problems in your program.

Leave a Comment