Question: Write the function that encrypts a message by switching every alphabetical letter (lower case or upper case ) with alphabetical position i with the letter
Write the function that encrypts a message by switching every alphabetical letter (lower case or upper case ) with alphabetical position i with the letter with alphabetical position 25 - For example , lettera is at position and after encoding it becomes letter z ( position 25). Letter m is at position 12, after encoding it becomes letter n because 25 - 12 is 13. So, if the message is " at the cafeteria " result will be zg.gsv xzuvgvirz " The function expects message to point to a string containing the message to be encoded stores the output to the string pointed by result . void encrypt (char message , char result { l/ add your code
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
