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
Explain rethrowing exceptions with an example?
What is the use of setprecision in c++?
What is difference between class and function?
How can a called function determine the number of arguments that have been passed to it?
How the endl and setw manipulator works?
Write a program in c++ to print the numbers from n to n2 except 5 and its multiples
Is c++ a difficult language?
What is runtime polymorphism in c++?
What is object in c++ wikipedia?
What are the advantages of c++?
What is the size of a vector?
How to get the current position of the file pointer?
Program to check whether a word is a sub-string or not of a string typed
What is this weird colon-member (" : ") syntax in the constructor?
What type of question are asked in GE code writing test based on c++ data structures and pointers?