Driver code
int main ( ) { struct Node * head = NULL ; head = create ( head , 1 ) ; head = create ( head , 2 ) ; head = create ( head , 3 ) ; head = create ( head , 4 ) ; head = create ( head , 5 ) ; int n = 2 ; cout << " Linked ▁ list ▁ before ▁ modification : ▁ STRNEWLINE " ; display ( head ) ; head = removeNthFromEnd ( head , 2 ) ; cout << " Linked ▁ list ▁ after ▁ modification : ▁ STRNEWLINE " ; display ( head ) ; return 0 ; }