how to swap two numbers in a linked list without exchanging
the data but only the links?
Answer Posted / pavny
Suppose List contains 3 no. 10, 20, 30
try to exchange 10 and 20.
head points to 10.
temp = head;
head = head -> next;
temp -> next = head - next;
head -> next = temp;
I think it works..
| Is This Answer Correct ? | 3 Yes | 2 No |
Post New Answer View All Answers
In what scenario does the Logical file and Physical file being used?
Define stl.
sir please send me bpcl previous question papers
How do I convert a stl file?
Is stl open source?
Describe how to safeguard a system through acquisition of an antivirus Program and systematic backup.
What is stl in c++ with example?
What two types of containers does the stl provide?
how to use C++?
What is the use of stl?
Q1. A. What is unary operator? List out the different operators involved in the unary operator. B. What is an adjust field format flag? Q2. A. Distinguish between a # include and #define. B. Can a list of string be stored within a two dimensional array? Q3. A.Explain how a pointer to function can be declared in C++? B.List the merits and demerits of declaring a nested class in C++? Q4. A. What are the syntactic rules to be avoid ambiguity in multiple inheritence? B. Explain the operation of overloading of an assignment operator. Q5. A. Explain how the virtual base class is different from the conventional base classes of the opps. B. Explain how an exception handler is defined and invoked in a Program. Q6. A. What is a binary file? List the merits and demerits of the binary file usagein C++. B. Write short notes on Text Manipulation Routines. C. Write bites in Turbo c++ Header (“Include”) Files.
What are the components of stl?
How stl is different from the c++ standard library?
How do you convert stl to steps?
Explain stl.