Find the error in each of the following:
a. Assume that struct Card has been defined as containing two pointers to type
charnamely, face and suit. Also, the variable c has been declared to be of
type Card, and the variable cPtr has been declared to be of
type pointer to Card. Variable cPtr has been assigned the address of c. cout
<< *cPtr.face << endl;
b. Assume that struct Card has been defined as containing two pointers to type
charnamely, face and suit. Also, the array hearts[ 13 ] has been declared to
be of type Card. The following statement should print the
member face of element 10 of the array. cout << hearts.face << endl;
c. struct Person { char lastName[ 15 ]; char firstName[ 15 ]; int age; }
d. Assume that variable p has been declared as type Person and that variable c
has been declared as type Card. p = c;