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
When did c++ add stl?
How does an stl file work?
Who wrote stl?
how can u do connectivity in c++ language? plz send me connectivity code in c++ ?
How stl is different from the c++ standard library?
how to use C++?
How connect plc and pc through software
What is stl in c++ with example?
totoo po ba ang manga aliens!
How do you convert stl to steps?
What does stl stand for in basketball?
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
What is meant by stl in c++?
What are the different types of stl containers?