-
What will be the output of the following C code?
#include <stdio.h>
struct Condition
{
int n1;
char n2;
};
int main()
{
struct Condition con1[] = {11, 91, 31, 14, 15, 16};
struct Condition *ptr1 = con1;
int n1 = (sizeof(con1) / sizeof(ptr1));
if (n1 == 1)
printf("%d\n", ptr1->n1);
else
printf("False\n");
}
-
- False
- Compilation Error
- Garbage value
- Nothing
- None of these
Correct Option: A
False