Write a program to reverse a linked list?
Answer Posted / surendra
suppose p is the head pointer.
r=NULL;
while(p)
{
q=r;
r=p;
p=p->next;
r->next=q;
}
p=r;
Is This Answer Correct ? | 16 Yes | 7 No |
Post New Answer View All Answers
What are the storage qualifiers?
Explain the use of this pointer?
What is the iunknown interface?
What are the main features of c++?
Specify different types of decision control statements?
Explain virtual destructor?
What is null and void pointer?
how to explain our contribution in the project?
Explain this pointer?
Is c++ a float?
Is linux written in c or c++?
What are pointer-to-members? Explain.
What does it mean to declare a member function as static?
Is c++ primer good for beginners?
what is C++ exceptional handling?