C Programming :: Structures, Unions, Enums - Discussion
Home > C Programming > Structures, Unions, Enums > MCQs Questions Discussion
21 / 43
How do you modify the below structure to have less size in view of byte padding?
typedef struct emp
{
int emp_code;
char* emp_name;
char grade;
double salary;
char gender;
struct emp* link;
}employee;
typedef struct emp
{
int emp_code;
char* emp_name;
char grade;
double salary;
char gender;
struct emp* link;
}employee;
Atypedef struct emp { int emp_code; char* emp_name; char grade; double salary; struct emp* link; char gender; }employee;
Btypedef struct emp { char* emp_name; char grade; int emp_code; double salary; struct emp* link; char gender; }employee;
Ctypedef struct emp { int emp_code; char* emp_name; double salary; struct emp* link; char grade; char gender; }employee;
DNone of these
Answer: Option (Login/Signup)
Show Explanation
Asked In ::
No Discussion on this question yet!