

MCQOPTIONS
Saved Bookmarks
1. |
What will be the output of the following C code? #include <stdio.h> struct output { int n1; char n2; }; int main(){ struct output out[] = {100, 90, 13, 95, 55, 92}; struct output *ptr1 = out; int n1 = (sizeof(out) / sizeof(struct output)); printf("%d %d n", ptr1->n1, (ptr1 + n1 - 1)->n1); } |
A. | 100 90 |
B. | 13 95 |
C. | 55 92 |
D. | 100 55 |
E. | None of these |
Answer» E. None of these | |