#include <stdio.h>
#include <stdlib.h>

struct card {
    char *face; //define pointer face.
    char *suit; //define pointer suit.
};

int main()
{
    struct card a;     //define struct a.
    struct card *aPtr; //define a pointer to card.

    //place strings into card structures.
    a.face="Ace";
    a.suit="spades";

    aPtr = &a; //assign adress of a to aPtr.

    printf("%s%s%s\n%s%s%s\n%s%s%s\n",a.face,"of",a.suit,
                                      aPtr->face,"of",aPtr->suit,       //this is simple.
                                      (*aPtr).face,"of",(*aPtr).suit);  //this is complex.

    return 0;
}
