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

Answers were Sorted based on User's Feedback



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

Answer / shirish

swap using xor operation in single line

a^=b^=a^=b

Is This Answer Correct ?    19 Yes 3 No

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

Answer / dayquest

Sn for Q1:
main()
{
int a=5,b=10;
a=a+b;
b=a-b;
a=a-b;
printf("%d %d",a,b);
getch();
}

Is This Answer Correct ?    11 Yes 7 No

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

Answer / 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

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

Answer / shailendra singh

a=(a+b)-(b=a);

Is This Answer Correct ?    3 Yes 2 No

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

Answer / guest

DESHAW Placement Papers | DESHAW Interview Procedure |
DESHAW Aptitude Questions | DESHAW TechniDESHAWl Questions
| DESHAW Interview Questions




SECTION-A

you should write the programs for the following problems
in C.

1. swapping two variables x,y without using a temporary
variable.
2. a program has been given asking to find the output
ans. it is algorithm for finding G.C.D
3. write a program for reversing the given string.
4. the integers from 1 to n are stored in an array in a
random
fashion. but one integer is missing. write a program to
find the
missing integer.
ans. idea. the sum of n natural numbers is = n
(n+1)/2.
if we subtract the above sum from the sum of
all the
numbers in the array , the result is nothing
but the
missing number.
5. some bit type of questions has been given on pointers
asking to
to find whether it is correct from syntax point of
view. and if
it is correct explain what it will do.(around 15 bits).



DESHAW Placement Papers | DESHAW Interview Procedure |
DESHAW Aptitude Questions | DESHAW TechniDESHAWl Questions
| DESHAW Interview Questions

SECTION-B

ANSWER AS MANY AS POSSIBLE.

6.& 7. two programs on pre-processor directions has been
given asking
to find the output.
8. simple question given on pointer
a) kernighan & richie page no. 122
b) schaum series page no. 323
try to understand the pointer problems given here he
asked to
explain
in the interview if answer it in exam.
9. write a c program to find whether a stack is
progressing in forward
or reverse direction.
10. write a c program that reverses the linked list.

GUIDELINES:
the interview is very tough he is asking to do the
problems in
front of him. he is also giving some new problems to
solve before
him.
you should have a very good funda of C language.


DESHAW Placement Papers | DESHAW Interview Procedure |
DESHAW Aptitude Questions | DESHAW TechniDESHAWl Questions
| DESHAW Interview Questions

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Placement Papers Interview Questions

I2 PLACEMENT PAPERS ------ I21 placement Paper 1

2 Answers   i2, SK Technologies,


Future placement papers -------- placement paper 1

1 Answers   FutureSoft,


IBM Freshers Interview + Placement Paper ---- apr 24 2007 Kolkata

2 Answers   IBM, Wipro,


idbi bank assistant manager placement papers

1 Answers   Axis Bank, Idbi Bank,


TCS January 25,27 2008

3 Answers   TCS,






INFOSYS PAPER - 24 SEP 2006 - HYDERABAD

1 Answers   Infosys,


Wipro Placement Procedure And Interview Rounds --- 2 february 2007

1 Answers   ADP, Wipro,


INFOSYS PLACEMENT PAPERS ----- Placement Paper 5

1 Answers   Infosys,


US TECHNOLOGY PLACEMENT PAPER

9 Answers   US Technology,


I-FLEX PLACEMENT PAPERS ----------placement paper -1

3 Answers   iFlex,


ONMOBILE PLACEMENT PAPERS ------------- Placement Paper 2

1 Answers   OnMobile,


Microsoft GDCI Recruitment Model Placement Paper ---- 2006

2 Answers   Google, Microsoft, Satyam,


Categories