Write a program to reverse a linked list?
Answer Posted / bipin pandey
node *reverse(node *first)
{
node *cur,*temp;
cur=NULL;
while(first!=NULL)
{temp=first;
first=first->link;
temp->link=cur;
cur=temp;
}
return cur;
}
| Is This Answer Correct ? | 5 Yes | 4 No |
Post New Answer View All Answers
Which is most difficult programming language?
Can we make any program in c++ without using any header file and what is the shortest program in c++.
What is vector processing?
What is endianness?
Is rust better than c++?
Can you Mention some Application of C/C++?
Can c++ do everything c can?
Define a nested class.
What are protected members in c++?
Is facebook written in c++?
What is the average salary of a c++ programmer?
What is the difference between a baller and a reference in C++?
What are different types of loops in c++?
What is atoi in c++?
What is the difference between a declaration and a definition?