What will be the output of the following C code?
#include <stdio.h>
struct student
{
char a[];
};
void main()
{
struct student s;
printf("%d", sizeof(struct student));
}
#include <stdio.h>
struct student
{
char a[];
};
void main()
{
struct student s;
printf("%d", sizeof(struct student));
}A. Compile time error
B. 8
C. 1
D. Varies
Answer: Option A

Join The Discussion