Given the following class definition and the variable declaration:
class employee
char *name;
long id;
}
class manager {
employee empl;
char* rank;
} x
Which of the following assignment statement is correct?
Answers:
A.
x.empl.id = 12345;B.
x->id = 12345;
C.
x.empl->id = 12345;
D.
x.id = 12345;
Answer. A.