How would you sort a linked list?
Answer / 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 |
write a “Hello World” program in “c” without using a semicolon?
difference between i++* and *++i
why java is called as a purely oops language.
What is the output for the below program? void main() { float me=1.1; double you=1.1; if(me==you) printf("love c"); else printf("know c"); }
What is spaghetti programming?
write a program that will accept two integers and will implement division without using the division operator if the second value is an odd number and will implement multiplication without using multiplication operator if the second value is an even number.
which is the best antivirus and how to update it
What are qualifiers in c?
What is information technology.
Explain what is the difference between a string and an array?
main() { printf("\n %d %d %d",sizeof('3'),sizeof("3"),sizeof(3)); }
List a few unconditional control statement in c.