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

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!