I'm compiling a short program, and I'm getting a warningin this section - the log is indicating my while statement.
Warning is: [Warning] comparison of complete and incomplete pointers
I guess I need some help understanding what it means by an incomplete pointer?
(p.s. I can certainly provide the rest of the program if anyone needs it.)
//function to print employee table using pointers
void premps2(struct employee *ptr, int n)
struct phone * endptr = ptr + n; //pointer to end of struct
while(ptr < endptr)
printf("Name: %s\t\tPhone: (%s)%s-%s\n", ptr -> name,
ptr -> phone.area_code, ptr-> phone.prefix,