Using above declaration which of the following statement is correct?
A. cout << e[0].empno << e[0].ename;
B. cout << e[0].empno << ename;
C. cout << e[0]->empno << e[0] → ename;
D. cout << e.empno << e.ename;
Answer:A
Using above declaration which of the following statement is correct?
A. cout << e[0].empno << e[0].ename; B. cout << e[0].empno << ename; C. cout << e[0]->empno << e[0] → ename; D. cout << e.empno << e.ename;