Question: Write a C code that can do the following please Write the function that shifts a message. The function expects message to point to a
Write the function that shifts a message. The function expects message to point to a string containing the message to be shifted; shift represents the amount by which each letter in the message to be shifted. Lower-case letters remain lower-case when shifted, and upper- case remain upper-case. For example, if the message is "Go ahead, make my 18. day.", and shift is 3, the function will modifty message to "Jr dkhdg, pdnh pb gdb." If the message is "Jr dkhdg, function will modify message to "Go ahead, make my day. ". Hint: To handle the wraparound problem, use the % operator. For example,'X' shifted by 4 is 'B' pdnh pb gdb. ", and shift is 23, the void shift (char message, int shift)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
