How do you modify the below structure to have less size in view of byt

Loading

Choose the correct option.

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;

A. typedef struct emp
{
int emp_code;
char* emp_name;
char grade;
double salary;
struct emp* link;
char gender;
}employee;
B. typedef struct emp
{
char* emp_name;
char grade;
int emp_code;
double salary;
struct emp* link;
char gender;
}employee;
C. typedef struct emp
{
int emp_code;
char* emp_name;
double salary;
struct emp* link;
char grade;
char gender;
}employee;
D. None of these

Leave a Comment