Menu

[solved]-Write Function C Accepts Two Arguments Char Array Containing Guess Characters Another Char Q39088000

Write a function in C that accepts two arguments: a char arraycontaining guess characters, and another char array containing asecret word or phrase to be guessed.

The function should return a new char array that includes theguessed letters of the word to be guessed, and underscores wherethe letters have not been guessed.

For example:

secret: magistrate

guess: etrm

output:

m _ _ _ _ t r _ t e

Tip: fill the output array with underscoresfirst, corresponding to the length of the secret word. Then, changethe underscores to letters in the same character locations in theoutput word corresponding to characters in the guess.

Expert Answer


Answer to Write a function in C that accepts two arguments: a char array containing guess characters, and another char array conta… . . .

OR


Leave a Reply

Your email address will not be published. Required fields are marked *