-
What will be the output of the following C code?
#include <stdio.h>
struct Employee
{
char str[];
};
void main()
{
struct Employee Emp;
printf("%d", sizeof(struct Employee));
}
-
- Garbage value
- Undefined behaveiour
- Nothing
- Size of char
- Compilation Error
Correct Option: E
Compilation Error
main.c:4:14: error: flexible array member in a struct with no named members
char str[];