text: A function to convert given BST to Doubly Linked List . left pointer is used as previous pointer and right pointer is used as next pointer . The function sets * head to point to first and * tail to point to last node of converted DLL
code: void convertBSTtoDLL ( node * root , node * * head , node * * tail ) {