Home /
Expert Answers /
Computer Science /
given-string-inputstr-on-one-line-character-updated-char-on-a-second-line-and-integer-strindex-o-pa888
(Solved):
Given string inputStr on one line, character updated Char on a second line, and integer strIndex o ...
Given string inputStr on one line, character updated Char on a second line, and integer strIndex on a third line, change the character at index strIndex of inputStr to updatedChar. Ex: If the input is: garlic Q 2 then the output is: gaQlic Note: Assume the length of string inputStr is greater than strIndex