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
What is recursion?
Describe the advantage of an external iterator.
Which function cannot be overloaded c++?
Is it possible to have a recursive inline function in c++?
What is a container class? What are the types of container classes in c++?
What does new do in c++?
What is difference between class and structure in c++?
What is c++ programming language?
How much do c++ programmers make?
What are the advantages of using friend classes?
Can I learn c++ without knowing c?
Do you know what are pure virtual functions?
List the advantages of inheritance.
What is c++ hash?
What is the auto keyword good for in c++?