Question: Write a complete C program that takes two arguments on the command line when it is run: a string and a number. The second argument
Write a complete C program that takes two arguments on the command line when it is run: a string and a number. The second argument is represented by the last two digits of your student ID. The program replaces each of the string characters in an: even position with the character, if the second program argument is an even number (for this purpose, zero is assumed to be an even number) or odd position with the 's' character, if the second program argument is an odd number. The program then displays the altered string
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
