5.0010.  Given the following sections of C code:

 

struct  emp

{  char lname[7], dept[5];

    short age, class;

    float salary;

};

 

void main()

{   struct emp employee[6];

     printf (“%lu\n”, &employee[2].class);   // The output would be 6420

 

b.  What would be printed out by the command:  printf(“%lu”, &employee[4].dept);

 

From Part a we know that employee == 6366

Therefore:   &employee[4] == 4 * 20 + 6366 = 80 + 6366 =  6446

Therefore:   &employee[4].dept = 6446 + 7 = 6453