Question: Define a function makeDeck with the following prototype: cardT * makeDeck ( void ) ; It should link a list of 5 2 cardTs, one

Define a function makeDeck with the following prototype:
cardT *makeDeck(void);
It should link a list of 52 cardTs, one of each combination of rank 1-13 and suit C, D, H, or S and return the head of the list.
Use the makeCard and addToPile functions as described above (they have already been defined here).

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!