I was able to have the user enter in their desired letter but I have a problem with printing out the arrays. Here is what I have:
Code:
for(i=0; i<SIZE; i++)
{
StoreUserLetter[i]=GetGuess();
}
printf("%c", StoreUserLetter[i]);
The variable SIZE is to keep the user from entering a certain amount of character if anyone is curious.
and here is the user defined function:
Code:
char GetGuess()
{
char guessofuser;
printf("Enter your guess: ");
scanf(" %c", &guessofuser);
return guessofuser;
}
What could be wrong? It does not print out anything.