Question: If you have the list shown below, what will the following code output? Int Node cursor; IntNode head 2 = null; for (cursor = head;

If you have the list shown below, what will the following code output? Int Node cursor; IntNode head 2 = null; for (cursor = head; cursor != null; cursor = cursorgetLink() ) \{ head2 = new IntNode (cursor getData(), head2); \} for (cursor = head2; cursor != null; cursor = cursor. getlink ()) \{ System.out.print(cursor.getData() + " "); \} Select one: a. 1020304050 b. 20406080100 C. 10080604020 d. 5040302010
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
