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 increment operator in c++?
What is data hiding c++?
Show the declaration for a static function pointer.
What operators can you overload in c++?
What are separators in c++?
How new/delete differs from malloc()/free?
What is the use of pointer in c++ with example?
Why is it necessary to use a reference in the argument to the copy constructor?
What are punctuators in c++?
Can we delete this pointer in c++?
Show the declaration for a pointer to function returning long and taking an integer parameter.
what is VOID?
Should I learn c or c++ first?
List down the guideline that should be followed while using friend function.
Is oops and c++ same?