DESHAW placement papers --------- placement paper 4

Answer Posted / purnendu shaw

/*Q.No 10....Reverse a linked list*/
void reverse(node** head)
{
node *p,*q,*r;
if(*head==NULL){printf("Empty link list:");return;}
p=*head;
q=p->next;
r=q->next;
while(r!=NULL)
{ q->next=p;p=q;q=r;r=r->next;}
q->next=p;
*head=q;
}

Is This Answer Correct ?    3 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Hi.. Guys Im pranitha, presently im working in a organisation & im look for job at MNC's like DELL, Delloitte, Bank of America, Genpect, etc., I have completed B.com . Pls help me...

1133


printf("%d",printf("%d",printf("%d",printf("%s","ILOVECPROGRAM")))); whats the output

1385


your project to describe and tell about : 1. My favorite things 2. My favorite places at home 3. Animals *Choose one of them to describe *Write on your paper *If you done, Send me *Did you get it

775


What were the occupations of the people who lived within the Mauryan Empire?

570


my question is : reverse a string in COBOL program (please write a code asap) input file: 1234abcdef output file: 8765_____ abc*$#1___ 1_2_3_4__ cdef____ghi h_k_z_a__ a_z_k_h___ ihg____ghi 4_3_2_1___ 1#$*cba__ ______5678 fedcb4321

1291






speak 1min on topic Travelling,memorable moment ,memorable day?

1729


What are the frequently asked questions for interview in capital iq company ?

1311


what is difference between uv and visible spectroscopy and how to differentiate the drug compounds in uv visible region

1584


i want the sample placement paper of goldman sachs urgently. please send it to me

3918


email me previous question papers of bob bank for po exams

2052


why didn't get placed so far?

1183


aptitude

684


Recently conducted Apptitude test

1401


A frog wants to climb a pole which is 15 feet in height, frog can jump 3 feet every minute after which he rests for a minute where he slips down 2 feet. How much time will the frog take to reach the top of the pole?

585


HI SIR I WANT PREVIOUS QUESTION PAPER OF HPCL I M CHEMICAL ENGG.

1935