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 an operator in c++?
How many static variables are created if you put one static member into a template class definition?
Can malloc be used in c++?
What are punctuators in c++?
What are static type checking?
How do you flush a buffer in c++?
Discussion on error handling of C++ .
What function initalizes variables in a class: a) Destructor b) Constitutor c) Constructor
How the virtual functions maintain the call up?
What is #include iostream in c++?
What are the two shift operators and what are their functions?
If you hear the cpu fan is running and the monitor power is still on, but you did not see anything show up in the monitor screen. What would you do to find out what is going wrong?
What is c++ w3school?
Write a program which uses Command Line Arguments
What are the various storage classes in C++?