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 does 7/9*9 equal ? a) 1 b) 0.08642 c) 0
When there is a global variable and local variable with the same name, how will you access the global variable?
What are files in c++?
Why do we need c++?
What is type of 'this' pointer? Explain when it is get created?
What does the ios::ate argument do?
What is tellg () in c++?
Explain how the virtual base class is different from the conventional base classes of the opps.
Explain terminate() and unexpected() function?
Please explain the reference variable in c++?
What are the extraction and insertion operators in c++?
What is :: operator in c++?
How does code-bloating occur in c++?
What is the difference between new() and malloc()?
What are pointer-to-members in C++? Give their syntax.