Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

6. (TCO 2) Given a class called Employee and the following definitions and state

ID: 3651373 • Letter: 6

Question

6. (TCO 2) Given a class called Employee and the following definitions and statements:
void myFunction (Employee * eptr);
Employee emp;
Which of the following statements correctly calls the function passing in the address of the data array?(Points : 6)
myFunction(emp);
myFunction(&emp);
myFunction(*emp);
myFunction(**emp);


7. (TCO 2) Given the following definitions, select the statement which is illegal.
int * iptr;
double * dptr;
int j = 10;
double d = 10.0; (Points : 6)
iptr = &j;
dptr = &d;
iptr = 0;
dptr = &j;

Explanation / Answer

myFunction(&emp);

dptr = &j;

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote