Explain palindrome program?
Answers
Explanation:
When a number or word or a phrase or a sequence of characters which resembles the same while reading them from backward are called palindrome. Palindrome examples: 2882, madam, noon, level.
Answer:
A palindrome number is a number that is equal to its reverse. Our program works as follows: at first, we copy input string into a new string (strcpy function), and then we reverse (strrev function) it and compare it with the original string (strcmp function). When a number or word or a phrase or a sequence of characters which resembles the same while reading them from backward are called palindrome. Palindrome examples: 2882, madam, noon, level. A Palindrome is a word, sequence or phrase that reads the same forward as it does backwards, for example words like 'dad', 'mom', 'madam' or numbers like '11', '121', or '99099'. In this article we will create two palindrome programs.