Observe that when you follow the example above, the prompt \"Enter the desired w
ID: 441650 • Letter: O
Question
Observe that when you follow the example above, the prompt "Enter the desired word length: "will be printed to the file mystest1. c and not to the screen. This implies two things. First, you will have to type-in the desired word length, without being prompted for it. Second, before you can compile the file mystest1. c you should manually delete the first line in this file. You can avoid these complications, during most of the development, by leaving out from your program the part that deals with prompting the user and reading the desired word length. You could add this part when you are sure that the rest of your code is correct.Explanation / Answer
Here's the code that needs modifying: #include#includeint main() {int max=7; char input[max+1],letters[]={'a','b','c','d','r'}; char output[max+1],key[6]; int i,j,k,used[5],bad; do { for(i=0;iRelated Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.