Question: Write a program that reads each word from A1.txt and check if it's a palindrome or not. Show your output in the file B1.txt. The
Write a program that reads each word from A1.txt and check if it's a palindrome or not. Show your output in the file B1.txt. The total number of words in the file can change. You must use c-string or character arrays. Using String datatype and strrev() function are not allowed in this problem. "A palindrome is a word, phrase, number, or other sequence of characters which reads the same backward or forward." [Wikipedia] Sample Input: series madam Sample Output: no yes
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
