c++
Exercise 4 Assume the following structures been declared: ListNode StringNode DoubleNode PointNode struct ListNode struct StringNodestruct DoubleNode string PointNode( int data ListNode next; string data StringNode next double data; DoubleNode next int x Exercise 4.1 For each of the following diagrams, draw a picture of what the given nodes would like like after the given line of code executes: ist list-next-next nullptr ist-next new ListNode list-next->data3 Exercise 4.2 For each of the following d given “before’ starting point by modifying the
OR
OR