i have just created 2 link list and tried to print both of them but when i entered head instead of head1 in both the print function then the output is strange can u please explain i have set the code with comments please check that
Printing 2 linklist
@Learning_bunny you are reading both linked list and storing them in head, so head1 remains NULL.
Inside one while loop use head1, then both head and head1 will give right output.
If this resolves your doubt mark it as resolved