Answer Posted / prakashdasari
node *ptr1,*ptr2,*ptr3;
ptr1=start;
ptr2=ptr1->next;
ptr3=ptr2->next;
ptr1->next=NULL;
ptr2->next=ptr1;
while(ptr3!=NULL)
{
ptr1=ptr2;
ptr2=ptr3;
ptr3=ptr3->next;
ptr2->next=ptr1;
}
start = ptr2;
| Is This Answer Correct ? | 1 Yes | 2 No |
Post New Answer View All Answers
What is c token?
Write a progarm to find the length of string using switch case?
shorting algorithmS
What are the types of c language?
Write a program to check whether a number is prime or not using c?
What is structure data type in c?
Can a variable be both static and volatile in c?
What is 02d in c?
Create a simple code fragment that will swap the values of two variables num1 and num2.
Write a code on reverse string and its complexity.
Once I have used freopen, how can I get the original stdout (or stdin) back?
What is scanf_s in c?
What is the use of header?
How do I use strcmp?
What is the difference between fread and fwrite function?