Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 techniqueStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started