How do I create a pointer for a struct.
This is an example
typedef struct worker_t
{
char name[25];
job_t title;
double payrate;
double hours;
};
int input(worker_t);
I tried it here
worker_t employee[10];
worker_t* ptr_worker;
*ptr_worker = &employee;
input(worker_t employee[10]);
I know how to use pointers on and pass normal variables, but what about user defined ones?
Any help is appreciated.