void Free( struct node *ptr ) { while( ptr) { ???? } } Which one of the following can replace the ???? for the function above to release the memory allocated to a linked list?
n = n->next; free( n );
struct node m = n; n = n->next; free( m );
free( n ); n = n->next;
struct node m = n; free( m ); n = n->next;