Can I simply take two arrays of the same data type and set one equal to the other in order to copy all of the contents to the second array like this:
then at one point i want to do p1_hand = p2_hand. Will this work or do I need to use a loop to set each index equal to the other?Code:typedef struct card { int face; int suit; int card_num; } Card; Card p1_hand[5]; Card p2_hand[5]; //then i have a bunch of code that gives each hand array 5 cards