Question: Hello expert!Please check the code is 100% correct and no any warning because warning is considered as error in my computer. Write a C program
Hello expert!Please check the code is 100% correct and no any warning because warning is considered as error in my computer.

Write a C program substitution.c which reads characters from its input and writes the characters to its output encrypted with a Substitution cipher. A Substitution cipher maps each letter to another letter. The mapping will be given to your program as a single command line argument. This command line argument will contain 26 characters: an ordering of the letters 'a'.. 'z'. Characters other than letters should not be encrypted. Your program should stop only at the end of input. Your program should contain at least one function other than main. For example: $ ./ substitution qwertyuiopasdfghjklzxcvbnm I was scared of dentists and the dark O val leqktr gy rtfzolzl qfr zit raka I was scared of pretty girls and starting conversations Ovql leqktr gy hktzzn uoksl qfr lzqkzofu egfctklqzogfi Ctrl-D $ ./ substitution abcdefghijklmnopqrstuvwxyz The identity cipher!!! The identity cipher!!! Ctrl-D $ ./ substitution bcdefghijklmnopqrstuvwxyza The Caesar cipher is a subset of the substitution cipher! Uif Dbftbs djqifs jt b tvctfu pg uif tvctujuvujpo djqifs! Ctrl-D Your program will only be tested with an appropriate command line argument - but a good programmer would check the command line argument is present and appropriate
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
