C Programming :: Structures, Unions, Enums - Discussion
Home > C Programming > Structures, Unions, Enums > MCQs Questions Discussion
22 / 43
What is the output of the following 'C' program ?
#include<stdio.h>
typedef struct emp
{
char* emp_name;
char grade;
int emp_code;
double salary;
struct emp* link;
char gender;
}employee;
void main()
{
printf("\n %d",sizeof(employee));
}
#include<stdio.h>
typedef struct emp
{
char* emp_name;
char grade;
int emp_code;
double salary;
struct emp* link;
char gender;
}employee;
void main()
{
printf("\n %d",sizeof(employee));
}
A28
B24
C20
DCompilation Error
ENone of these
Answer: Option (Login/Signup)
Show Explanation
Asked In ::
No Discussion on this question yet!