What happens when invocation of join happens over two NULL -terminated linked lists?

4Comments
Akshay Saxena @akshay0612
12 Aug 2017 12:05 pm

B is the right answer if both are non-empty it will append list m to the end of list n if list m is empty it reports an error.

set2018 @setgate
12 Aug 2017 12:09 pm

u mean segmentation fault if null point to another null list ?

here wht the meaning of null pointer dereference becoz in the ques it is given tht both r null terminated list so answer should be A ?

shivani @shivani1234
12 Aug 2017 02:48 pm

null pointer dereference is a special type of segmentation fault .

shivani @shivani1234
12 Aug 2017 02:49 pm

ans to "here wht the meaning of null pointer dereference becoz in the ques it is given tht both r null terminated list so answer should be A ?" 
it means when both linked lists are empty then , it will cause null pointer dereference.