776 views
1 votes
1 votes

 

The following C function rearranges the members of a single-linked list of integers that is passed as a parameter. The list of numbers 1, 2, 3, 4, 5, 6, and 7 in the specified order is passed to the function when it is called. How many components will move about in the list once the function is finished running?

1 Answer

1 votes
1 votes

I’m getting the answer as ‘2’ , but the given key is ‘6’ and the final list is “ 2, 1, 4, 3, 6, 5, 7 ”

Can anyone please help, what’s going wrong, thanks

 

Related questions

0 votes
0 votes
0 answers
3
Rahul Jain25 asked Nov 5, 2016
505 views
I am not getting how unsigned is used and how is it working???