Elearning , Interview Questions And Answers

Google

int *p=a; int *q=&a[7]; printf("%d%d%d",q,p,(q-p+1)); } main () { int i=5; clrscr (); i= !i >3; printf("%d",i); }*/ void main () { int a[10]; clrscr (); 3[a]=10; printf("%d ",*(a+3)); } Sasken Exam 20th Jul 2004 Pattern : C(10 Qs) + Aptitude(10 Qs) + Discpline based[CS/EC](10 Qs) Duration : 1 Hr C questions ------------ 1.Consider the following declaration:- char const *p = 'd'; Which of the following is not a permissible operation (a) *p++ (b) ++p (c) (*p)++ (d) All 2.What is the output of the following code:- void print_arr(float **p) { printf(" 0 %f 1 %f 2 %f\n",p[0][0],p[0][1],p[0][2]); }