
Write a program that receives a string, a search character, and a replacement character, then substitutes only the last matching character found in the string.
./last_replace "we shipped on vibes again" "a" "o"we shipped on vibes agoin./last_replace "reloaed" "e" "i"reloaid./last_replace "cursor" "x" "y"cursor./last_replace "loop" "oo" "a" | cat -e$last_replace.cwrite
Run the tests to grade your code
Write a program that receives a string, a search character, and a replacement character, then substitutes only the last matching character found in the string.
./last_replace "we shipped on vibes again" "a" "o"we shipped on vibes agoin./last_replace "reloaed" "e" "i"reloaid./last_replace "cursor" "x" "y"cursor./last_replace "loop" "oo" "a" | cat -e$last_replace.cwrite
Run the tests to grade your code
Memory will appear here