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
Recently conducted Apptitude test
how did you celebrate your last birthday?
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
why didn't get placed so far?
printf("%d",printf("%d",printf("%d",printf("%s","ILOVECPROGRAM")))); whats the output
HI SIR I WANT PREVIOUS QUESTION PAPER OF HPCL I M CHEMICAL ENGG.
What are the frequently asked questions for interview in capital iq company ?
Do we have vacancy for HR RECRUITER ?
what is bidirectional?
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
my question is : reverse a string in COBOL program (please write a code asap) input file: 1234abcdef abc*$#1___ cdef____ghi a_z_k_h___ 4_3_2_1___ ______5678 output file: 8765_____ 1_2_3_4__ h_k_z_a__ ihg____ghi 1#$*cba__ fedcb4321
what is the use of air in gc
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?
Zero setting of sejong rottary press
i want the sample placement paper of goldman sachs urgently. please send it to me