Elearning , Interview Questions And Answers

Google

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() { unsigned int i=-1; printf("%d\n",i); printf("%u\n",i*-1); } a)runtime error b)compilation error c)prints -1 to 1 d)prints 1 and 1 ans:c 11. #include <stdio.h> void main()


Hosted by www.Geocities.ws

1