Elearning , Interview Questions And Answers

Google

{ int a; char b; char n; short s; }n1; main() { printf("%d",sizeof(n1)); 10> main() { enum{ m=2,n,o=60,p}; printf("%d",p); } 11> IF A file contains the line "I am a boy\r\n" then on reading this line into the array str using fgets() What would str contain? 12> in command line enter myprog 1 2 3 what is output? Main(int argc , char * argv[]) { int I,j=0; for(i=0;i<argc;i++) j=j+atoi(argv[i]); printf(%d",j); } 13> in command line enter myprog Friday Tuesday Thursday what is output? Main(int argc , char * argv[]) { printf("%c",**++argv): } 14>


Hosted by www.Geocities.ws

1