Question: A Palindrome is a word that is the same backwards and forwards. For example, the strings below are all palindromes: ODO dood racecar H*q*H 123321

A Palindrome is a word that is the same backwards and forwards. For example, the strings below are all palindromes:

ODO dood racecar H*q*H 123321

Write a boolean function isPalendrome that receives a string as a parameter, and that returns true if the given string is a palindrome and false if the string is not a palindrome. Here is the prototype for your function:

bool isPalindrome(string theString);

Hint: Remember that the characters of an string can be accessed as elements in an array.

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!