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
What are the various types of stl containers?
Is there any error below, its a code to delete all entires from a map #include
How do I convert a stl file?
Is stl part of c++ standard?
write a program to convert a decimal number in to its equivalent binary number?
How connect plc and pc through software
What is a standard template library (stl)? What are the various types of stl containers?
help me i need a c++ program which takes sequesnce of characters and outputed sequence of their token taypes, work same compiler in lexical analysis phase
draw a flowchart that accepts two numbers and checks if the first is divisible by the second.
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.
Is stl open source?
how to making game in c++ ?
What are the components of stl?
Describe how to safeguard a system through acquisition of an antivirus Program and systematic backup.
To modify an, existing worksheet. What steps are involved for: 1. Inserting and deleting rows and columns. 2. Printing cell formulas 3Jld displayed values 3. Using the page setup command