-
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);
}
-
- 100 90
- 13 95
- 55 92
- 100 55
- None of these
Correct Option: D
100 55