Question: Write a function in C called that takes a string and return a new string built from this string after replacing each alphabetical character by
Write a function in C called that takes a string and return a new string built from this string after replacing each alphabetical character by the opposite alphabetical character.
abecomes zZbecomes Adbecomes wMbecomes N and so on
Case is not changed.
Must not use sprintf or other libc functions.
Input: "abc" Output: zyx
char amirrorchar str
for i ; i strlenstr; i
if stri && stri
strimstrin;
else if stri && stri
striMstriN;
else
stri stri;
return str;
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
