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
How do I convert a stl file?
What is the stl, standard template library?
Who created stl?
totoo po ba ang manga aliens!
a program using one dimensional array that searches a number if it is found on the list of given input numbers given by the user and locate its exact location in the list.
Write a C/C++ program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the total number of disk writes by MySQL.
Describe how to safeguard a system through acquisition of an antivirus Program and systematic backup.
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 stack?
Can we use stl in coding interviews?
Name the different types of stl containers.
Is there any error below, its a code to delete all entires from a map #include
Is stl part of c++ standard?
how to making game in c++ ?
What is stl in oop?