Question: 2. (a) Write a program that reads a messagc. then checks whether it's a palindrome (the letters in the message are the same from left
2. (a) Write a program that reads a messagc. then checks whether it's a palindrome (the letters in the message are the same from left to right as from right to left): Enter a message: He lived as a devil, eh? Palindrome Enter a message: Madam,I am Adam. Not a palindrome Ignore all characters that aren't letters. Use integer variables to keep track of positions in the array (b) Revise the program to use pointers instead of integers to keep track of positions in the array. 2. (a) Write a program that reads a messagc. then checks whether it's a palindrome (the letters in the message are the same from left to right as from right to left): Enter a message: He lived as a devil, eh? Palindrome Enter a message: Madam,I am Adam. Not a palindrome Ignore all characters that aren't letters. Use integer variables to keep track of positions in the array (b) Revise the program to use pointers instead of integers to keep track of positions in the array
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
