Anúncio

C Code please! No strings allowed only arrays please The function .pdf

1 de Apr de 2023
C Code please! No strings allowed only arrays please The function .pdf
Próximos SlideShares
Can someone help with this 4,5, and 6 please thank you  3 (9 Point.pdfCan someone help with this 4,5, and 6 please thank you 3 (9 Point.pdf
Carregando em ... 3
1 de 1
Anúncio

Mais conteúdo relacionado

Mais de info189835(20)

Anúncio

C Code please! No strings allowed only arrays please The function .pdf

  1. C Code please! No strings allowed only arrays please The function receives as input array secret that holds the secret word, array found that holds the letters that have been found thus far, the length of the secret word, and the input character from the user. The function returns if the letter given by the user was found in array secret (via the boolean return variable), updates array found, and also returns the number of times the letter was found via pointer times Test your program for the words: abandon, annoyed, finance, aerobic, inferno, infancy. Sample output Hi, lets play hangman. The secret word is: ******* Guess a letter:t Letter t is not part of the secret word, You have 3 attempts left. ******* Guess a letter:a Letter a exists 2 times in the secret word, You have 3 attempts left. a*a**** Guess a letter:e Letter e is not part of the secret word, you have 2 attempts left.
Anúncio