InterviewSolution
Saved Bookmarks
| 1. |
Consider the following C program :#include <stdio.h>#include <string.h>struct s {int i;char *c;} str[] = {100, "eclasses", 200, "geeks",300, "data",400,"structure",500,"students"};int main(){struct s *p = str;p += 1;printf("%s", p -> c);p--;printf("%s,", ++p -> c);printf(" %d, ", p[1].i);p=p+4;printf("%s", p -> c);}Which of the string(s) will be in the final output of the above C program ?Note – This question is multiple select questions (MSQ).(A) geeksclasses(B) 100(C) students(D) 200 |
| Answer» None | |