I'm trying to check an integer array if it's empty. I stored ROGUE values in the array where should be empty and I'm not getting to check if my array is empty or not. Someone please help
Code:/*Checks if a player's hand is empty. The first player to have an empty hand wins the game so this function is necessary.*/ int isEmpty(CardPtr Hand){ int i=0; //counter while (i<NCARDS){ if (Hand[i].face == ROGUE && Hand[i].suit == ROGUE){ i++; } else printf("Not empty\n"); } return 0; }