Question: Please answer the question by following the instructions properly. Part 1 This exercise is from Ch12, Programming Project 2b,p275/276. Write a program called palindrome. c
Part 1 This exercise is from Ch12, Programming Project 2b,p275/276. Write a program called palindrome. c which has a function check_palindrome (). Your main () function must read an input string from the user, then make a call to check_palindrome () to confirm whether it's a palindrome (the letters in the message are the same from left to right as from right to left). If it is a palindrome, the function should return 1; if it is not a palindrome, it should return . Based on the return value of check_palindrome(), your main() function must print an appropriate output message. A user input string will have at most 100 characters. Your check_palindrome() function must be case-insensitive (i.e., "A" should be treated as equal to "a") and ignore all characters that are not letters. Your program MUST use pointers and NOT integer array indices (i.e., a[1], a[5] etc.) to process the character array. You will get a 0 on this part if your program uses integer array indices instead of pointers. Examples: Enter a message: He lived as a devil, eh? Palindrome Enter a message: Madam, I am Adam. Not a palindrome
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
