Question: In C, what's wrong with this function when gcc compiler saying error: assignment from incompatible pointer type [-Werror=incompatible-pointer-types] p = p->next; ? ReviewNode *p; p

In C, what's wrong with this function when gcc compiler saying "error: assignment from incompatible pointer type [-Werror=incompatible-pointer-types] p = p->next; "?
ReviewNode *p; p = head; while (p!NULL) // if the movi if (strp (p- && p -> re return p
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
