Elearning , Interview Questions And Answers

Google

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 d)does not print anything ans:b 9. #include<stdio.h> void main() { int I=65,j=0; for(;j<26; i++,j++){ printf("%s\n", i); } } a)compilation Error b)prints A to Z c)prints a to z d)runtime error ans:b 10. #include<stdio.h> void main() {


Hosted by www.Geocities.ws

1