Answer to Question m1

Type error. B is a pointer, not a structure. B.head is not allowed. It must be B->head.

Incorrect. What if both A and B are NULL? Then this function computes B->head, which causes a memory fault.