Question: Code in C Write the function that encrypts a message by switching every alphabetical letter (lower case or upper case) with alphabetical position i with

 Code in C Write the function that encrypts a message by

Code in C

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 -1. For example, lettera is at position 0 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.gsy 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 3

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 Databases Questions!