Question: The following C function takes a list of integers as parameter and rearranges the elements in the list. The function is called with the list
The following C function takes a list of integers as parameter and rearranges the elements in the list. The function is called with the list containing the 1, 2, 3, 4, 5, 6, 7 integers in the order indicated. What will be the contents of the list after the function has been executed?


A. 1,2,3,4,5,6,7
B. 2,1,4,3,6,5,7
C. 1,3,2,5,4,7,6
D. 2,3,4,5,6,7,1
struct node { int value; struct node * next; }; Void rearrange (struct node * list) {
Step by Step Solution
3.40 Rating (156 Votes )
There are 3 Steps involved in it
B Explanation 4 Function rearrange takes list of integers as an in... View full answer
Get step-by-step solutions from verified subject matter experts
