how to swap two numbers in a linked list without exchanging
the data but only the links?
Answer Posted / sha
let q=20,r=10 and p be a node previous to q
sequence is p-q-r
temp is pointer of link list.
then
temp=p->next;
p->next=temp->next;
p->next->next=temp;
and temp next can be conected to p->next->next->next if
there is any
Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
Define stl.
What does stl mean in slang?
How is stl different from c++ standard library?
sir please send me bpcl previous question papers
What is stl stand for?
please visit this site you'll find my question this is my homework please answer it if you can http://easyscience.org/ib/lofiversion/index.php/t36168.html
What is stl in c++ with example?
How stl is different from the c++ standard library?
How connect plc and pc through software
What is the use of stl?
Who wrote stl?
What is a stl vector?
i wanted to know about questions about c,c++ , which is required for placements.... im a fresher
how can u do connectivity in c++ language? plz send me connectivity code in c++ ?
write a program to convert a decimal number in to its equivalent binary number?