Elearning , Interview Questions And Answers

Google

} a.prints 1111 b.compilation error c.prints 0 d.is not a valid option ans:c 22. struct { int len; char *str }*p; ++p -> len a.increments p b. increments len c.compilation error d.nothing happens with either of p and len ans:b 23. int i=10; a.declaration b.definition c.both d.none ans:c 24. #include<stdio.h> void main(int arg c) { char a[]=abcdefghijklmnopqrstuvwxyz; printf(%d,sizeof(a)); } a.25 b.26 c.27 d.28 ans:c 25. #include<stdio.h> void main(int arg c) { char a[]=abcdefghijklmnopqrstuvwxyz; char *p=a; printf(%d,strlen(p)); p+=10; printf(%d,strlen(a)); } a.26 26 b.26 16 c.compilation error d.16 26 ans:a


Hosted by www.Geocities.ws

1