1.

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");
}

A. False
B. Compilation Error
C. Garbage value
D. Nothing
E. None of these
Answer» B. Compilation Error


Discussion

No Comment Found

Related MCQs