The Gateway to Computer Science Excellence
0 votes




The answer is 'd' will be printed. Can someone draw the linked list after the operations are performed. I think the second operation of the code doesn't bring in any change to the list.


thanks in advance

in Programming by
edited by | 105 views
Yes the 2nd operation does not make any change. It is like q->link=q=link :/

And after all the operations what i am getting is that the last node will point to the 2nd last node. Are you getting the same?
yes you are correct. I am also getting the same thing. I too got the answer as 'd' .

I was confused with the solution provided,



thanks :)

1 Answer

0 votes

it print d .


Related questions

Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true
52,345 questions
60,501 answers
95,326 users