please check my code i tried the code myself but not working
Getting getting output
hello @shivamgoel150
check now ->
inside ur while loop , u need handle case head1==NULL ,head2==NULL.
can you please explain what mistake i am doing in my code
if u dont handle these cases then ur code will try to access null value due to which segfault will occur.
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.