Question: Which statement will overwrite the data stored in node 1 into node 3? For example, assuming node 1 stores the integer 48 and node 3

Which statement will overwrite the data stored in node 1 into node 3? For example, assuming node 1 stores the integer 48 and node 3 stores the integer 90, after the function runs, node 1 will still store the same integer, but node 3 will store the integer 48. Note that "node 1", "node 2" and "node 3" are labels for the nodes, and the numbers are NOT the data stored in the nodes. *ptr node 1 node 2 node 3 A. ptr->getNext()->getData() = ptr->getPrev()->getData(); B. ptr->getNext()->setData() = ptr->getPrev()->getData(); C. ptr->getNext() ->setData()->ptr->getPrev()->getData(); D. ptr->getNext() ->setData(ptr->getPrev()->getData()); E. ptr->getNext()->setData(ptr->getData())
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
