Elearning , Interview Questions And Answers

Google

5. #include<stdio.h> void main() { int k=2,j=3,p=0; p=(k,j,k); printf("%d\n",p); } a)2 b)error c)0 d)3 ans:a 6. How to typedef a function pointer which takes int as a parameter and return an int a)Is not possible b)typedef int *funcptr int; c)typedef int * funcptr( int); d)typedef int (*funcptr)(int); ans:d 7. #include<stdio.h> void main() { int k=10; k<<=1; printf("%d\n",k); } a)10 b)0 c)20 d)compilation error ans:c 8. #include<stdio.h> void main() { int i=-10; for(;i;printf("%d\n",i++)); } a)error b)prints -10 to -1 c)infinite loop


Hosted by www.Geocities.ws

1