Loading...
Engaged employer
reverse a linked list
Anonymous
wrote the program to do the same
*tmp,*temp=start,*t; while(temp->next!=NULL) { tmp=temp->next; if(temp==start) temp->next=NULL; else temp->next=t; t=temp; temp=tmp; } temp=start;
*tmp,*temp=start,*t; while(temp->next!=NULL) { tmp=temp->next; if(temp==start) temp->next=NULL; else temp->next=t; t=temp; temp=tmp; } start=temp;
Check out your Company Bowl for anonymous work chats.
Get actionable career advice tailored to you by joining more bowls.
Stay ahead in opportunities and insider tips by following your dream companies.
Get personalised job recommendations and updates by starting your searches.