Write a program to reverse a linked list?
Answer Posted / jithin
reverse(Node * previous, Node * Current)
{
start = current;
if(current !=null)
{
reverse(current, current->next);
current->next = previous;
}
}
| Is This Answer Correct ? | 2 Yes | 2 No |
Post New Answer View All Answers
Explain stack unwinding.
What is object file? How can you access object file?
What are the two types of comments, and how do they differ?
What is the difference between prefix and postfix versions of operator++()?
Can the creation of operator** is allowed to perform the to-the-power-of operations?
Explain virtual class?
Arrange Doubly linked list in the ascending order of its integral value and replace integer 5 with 7?
Write a program for Divide a number with 2 and Print the output ( NOTE: Check for divide by zero error).
What are compilers in c++?
What is the latest c++ version?
Explain class invariant.
what are the events occur in intr activated on interrupt vector table
What are the basic data types used in c++?
How can you differentiate between inheritance and implementation in c++?
What are keywords in c++?