Question: 2 . ( 3 0 points ) Write a function IsPalindrome ( ) that takes an array of char - acters called Items [ ]

2.(30 points) Write a function IsPalindrome() that takes an array of char- acters called Items [] and an integer called size as parameters. The latter indicates the size of the array. The function returns true if the string represented by the stored elements in Items is a palindrome, and false otherwise. As usual, uppercase and lowercase versions of the same letter are considered to be different characters (e.g. as shown in the last run below, 'r' and 'R' are considered different). Call the function from the main function to test it.
Sample input and corresponding output: Enter a string: ayz This is not a Palindrome.
Enter a string: mam This is a Palindrome.
Enter a string: 1231 This is not a Palindrome.
Enter a string: 12aa21 This is a Palindrome.
Enter a string: madamsmadam This is a Palindrome.
Enter a string: Reginasaniger This is not a Palindrome.

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!