Jun 04 2009 06:36 AM 2471 2 Reversing Linked List sharan327 How to reverse a linked list using only one pointer? jjoshi Profile Answers by jjoshi Questions by jjoshi Oct 9th, 2009 Void revshow(){struct node *p;int temp[100],count=0,i;p=head;for(i=0;p!=NULL;i++,p=p->next)temp[i]=p->num;for(i=i-1,p=head;p!=NULL;i--,p=p->next)p->num=temp[i];} Answer Question Select Best Answer
Jun 04 2009 06:36 AM 2471 2 Reversing Linked List sharan327 How to reverse a linked list using only one pointer? jjoshi Profile Answers by jjoshi Questions by jjoshi Oct 9th, 2009 Void revshow(){struct node *p;int temp[100],count=0,i;p=head;for(i=0;p!=NULL;i++,p=p->next)temp[i]=p->num;for(i=i-1,p=head;p!=NULL;i--,p=p->next)p->num=temp[i];} Answer Question Select Best Answer
jjoshi Profile Answers by jjoshi Questions by jjoshi Oct 9th, 2009 Void revshow(){struct node *p;int temp[100],count=0,i;p=head;for(i=0;p!=NULL;i++,p=p->next)temp[i]=p->num;for(i=i-1,p=head;p!=NULL;i--,p=p->next)p->num=temp[i];}