Given the following:
I don't see how *tailp is an alias for head when *tailp is NULL.Code:#include <stdio.h> int main(void) { char x = 1; char y = 2; char *head, **tailp, *new; head = &x; new = &y; tailp = &head; printf("THe value of **tailp: %d \n", **tailp); printf("The value of head: %x and &x: %x \n", head, &x); *tailp = NULL; printf("THe new value of head: %d \n", head); printf("THe value of *tailp is: %d \n", *tailp); return 0; }
Thanks