Question: Jump to level 1 Given string inputString on one line and integer strIndex on a second line, change the character at index strIndex of inputString

Jump to level 1
Given string inputString on one line and integer strIndex on a second line, change the character at index strIndex of inputString to
'h'.
Ex: If the input is:
eagle
4
then the output is:
eaglh
Note: Assume the length of string inputString is greater than strIndex.
#include
Jump to level 1 Given string inputString on one

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!