Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Problem 1: Implement a function that determines if a word is palindrome. Examples of palindrome words: abba, Anna, Kayak. The function must return TRUE when

Problem 1: Implement a function that determines if a word is palindrome. Examples of palindrome words: \abba", \Anna", \Kayak". The function must return TRUE when the word contains only a single character. The function must return TRUE when it received a palindrome word, and FALSE otherwise. The function should be case insensitive. Assume that words are only composed of both capital or lower-case letters. Hint: Use the tolower() or toupper() functions declared in ctype.h. See http://examples.yourdictionary.com/palindrome-examples.html for single word palindrome examples.

The function must have the following properties: 1. Name: IsPalindrome

2. Return type: int

3. Input type: Non-mutable pointer to a string (i.e., a constant string).

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Oracle 10g Database Administrator Implementation And Administration

Authors: Gavin Powell, Carol McCullough Dieter

2nd Edition

1418836656, 9781418836658

More Books

Students also viewed these Databases questions

Question

What is the volume of liquid present in this graduated cylinder?

Answered: 1 week ago

Question

Question How are IRAs treated for state tax law purposes?

Answered: 1 week ago