C++ String Exercises: Check if a given string is a Palindrome or not
Write a C++ program to check if a given string is a Palindrome or not.
A palindrome is a word, number, phrase, or other sequence of characters which reads the same backward as forward, such as madam, racecar.
Visual Presentation:

Sample Solution:
C++ Code :
Sample Output:
Is madam a Palindrome? True Is racecar a Palindrome? True Is abc a Palindrome? False
Flowchart:

C++ Code Editor:
Contribute your code and comments through Disqus.
Previous C++ Exercise: Check if two characters present equally in a string.
Next C++ Exercise: Find a word with highest number of repeated letters.
What is the difficulty level of this exercise?
Based on 136 votes, average difficulty level of this exercise is Hard
.
- Weekly Trends and Language Statistics
- Weekly Trends and Language Statistics