Reverse the XOR Linked List to give head -- > 10 < -- > 20 < -- > 30 < -- > 40
cout << " XOR ▁ linked ▁ list : ▁ " ; printList ( & head ) ; reverse ( & head ) ; cout << " Reversed ▁ XOR ▁ linked ▁ list : ▁ " ; printList ( & head ) ; return 0 ; }