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
How does list r; differs from list r();?
What does the following code do: int c=0; cout< a) Undefined *Updated* b) 01 c) 00
What is struct c++?
What are files in c++?
What are the three forms of cin.get() and what are their differences?
What is c++ & why it is used?
Write a program in c++ to print the numbers from n to n2 except 5 and its multiples
Write a C++ Program to check whether a number is prime number or not?
Explain abstraction.
State two differences between C and C++.
What is the maximum combined length of command line arguments including the space between adjacent arguments?
Is empty stack c++?
Are there interfaces in c++?
What is the role of static keyword for a class member variable?
What is the best it certification?