123 Eng

Engineering the engineers™


Latest Jobs   Forum Map

 


Home
Source Codes
Engineering Colleges

Training  Reports
Seminar Reports
Placement Papers

Forums

   Computer Science / IT
   Electronics
   Electrical
   Mechanical
   Chemical
   Civil

   CAT / MBA

   GMAT / Foreign MBA
Latest Jobs

Engineering Jobs / Technical Jobs
Management Jobs

Sitemap
Terms of use

 
   

Job Placement Papers (All Companies)

 
Placement Papers>>HP

HP PLACEMENT  Placement Papers

Paper Type : Technical - Other
Test Date : 15 May 2007
Test Location : FIEM

HP PAPER ON 15th MAY

hello everbody ...hope my questions will help

1.the paper was totally filled with c.
2.some programs were given and u are asked for the output.
3. give the o/p of the following programs>>>
a)main()
{ printf("%d",scanf("%d%d",printf,scanf));
}
1)2 2)2 2 3)0 4)error

b)there was a program of swaping by pointer(check it out)

c)main()
{char *p="quick";
char q[]="sort";
char *t;
t=malloc(sizeof(p)+sizeof(q)+1);
strcpy(t,p);
strcat(t,p);
}

1)quick sort 2)sort sort 3)quickqick 4)sort quick

d)main()
{ int s[]={1,2,3,4,5,6};
printf("%d",&a[0]-&a[5]);
}
1)error 2)8 3)6 4)0

e)try to know pointer and its various operation (say what will happen if 2 pointer is added or int pointer is addressed to a char etc.)
4.try to know something about firewall and its functions

best of luck

By,
Sayan Guha Roy
 

 

Contribute content or training reports / feedback / Comments
job placement papers
All rights reserved © copyright 123ENG