Question: write the following tasks using C lang Task 1 Write a program that use a char array to store 5 characters inputted from the keyboard,
write the following tasks using C lang
Task 1 Write a program that use a char array to store 5 characters inputted from the keyboard, the program should then output the five characters on one line. After this the program should prompt the user to enter a number between 1 and 5 and a new character. The program should replace the old character at that position with the new character entered and output the new set of characters. EG. If the user initially inputs a,b2c2d2e Then enters 3 and z, the program should output a,bsz2d2 e. Task 2 Write a program that asks the user to input a word. The program should then check whether the user has entered a palindrome (). () Palindromes are words or phrases that are spelt the same backwards as they are forward Eg. rotor, radar and level are all palindromic words. - Use pointer technique
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
