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 important is c++?
What are friend functions in C++?
Which software is best for programming?
How is c++ used in the real world?
Which function cannot be overloaded c++?
What are the operators in c++?
What is endl c++?
Do you know about C++ 11 standard?
In int main(int argc, char *argv[]) what is argv[0] a) The first argument passed into the program b) The program name c) You can't define main like that
Differentiate between realloc() and free().
Which command properly allocates memory a) char *a=new char[20]; b) char a=new char[20]; c) char a=new char(20.0);
Differentiate between the manipulator and setf( ) function?
what are the decision making statements in C++? Explain if statement with an example?
What methods can be overridden in java?
Why is it called c++?