Blackjack: Fixed printing of array
This commit is contained in:
parent
b9331569c2
commit
75e6fcea62
@ -39,7 +39,7 @@ int main (int argc, char *argv[])
|
|||||||
void print_deck(int *deckOfCards){
|
void print_deck(int *deckOfCards){
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
for (i = 0; i<CARD_MAX; i++){
|
for (i = 0; i<=CARD_MAX; i++){
|
||||||
printf("%d\n", deckOfCards[i]);
|
printf("%d\n", deckOfCards[i]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user