Hi,
Could anybody shed any light as to this little problem:
I have declared an array of 26 characters to be used to hold lettes that have been guessed in a game of hangman. The array is then printed after each guessed letter to inform the user! My problem is is that as well as printing the characters is also prints strangee characters regulalry following the letters. The code that I am using for this little bit is:
This is just extracted from the main body of the code, but this is the only part I am having trouble with.Code:char alphabet[15]; alphabet[j] = letter; /* where letter is the one chosen by the user*/ j++; printf("\n\nThe letters that you have chosen so far ar: %s", alphabet);
Thanks