-
What will be the output of the following C code?
#include <stdio.h>
struct option
{
int n1;
int n2;
};
int main()
{
struct option opt1[] = {101, 97, 32, 91, 52, 91};
struct option *ptr1 = opt1;
int n1 = (sizeof(opt1) / 5);
if (n1 == 3)
printf("%d %d\n", ptr1->n1, (ptr1 + n1 - 1)->n1);
else
printf("False\n");
}
-
- Undefined behaviour
- Compilation Error
- Garbage value
- Nothing
- False
Correct Option: E
False