Elearning , Interview Questions And Answers

Google

calls a) 1000,2000,1000, b) 1000,2000,2000, c) 1000,1000,1000 d) 2000,2000,2000 ANS:a 17. #include<stdio.h> #define const const void main(int argc) { const int x=0; } a) compilation error, b) runs fine, c) runtime error, d) none of these ANS:b 18. #include<stdio.h> void main(int argc) { int d=1234.5678; printf("%d",d); } a) error, b) 1234.5678, c) 1234, d) 1235 ANS:c 19. #include<stdio.h> void main(int argc) { int a[]={5,6}; printf("%d",a[1.6]); } a) 5, b) runtime error, c) compilation error, d) 6 ANS:d 20. #include<stdio.h> struct x { int i=0; /*line A*/ }; void main(int argc) { struct x y; /*line B*/ }


Hosted by www.Geocities.ws

1