Question: Programing in c A palindrome is a string that reads the same both forward and backward. For example, tacocat and C are palindromes, cat is

Programing in c Programing in c A palindrome is a string that reads the same

A palindrome is a string that reads the same both forward and backward. For example, "tacocat" and "C" are palindromes, "cat" is not. Write a function isPalindrome that takes a string as parameter and returns 1 if the string is a palindrome and 0 otherwise. Your function must take char *str as a parameter. You should not input the length of the string as a second parameter. The end of the string should be detected as the character '\0'. Write another function isPalindromeFlexible to test if a string is a palindrome ignoring blanks and case mismatch in the matching process. Under these rules, "Anna", "Ott o" are palindromes. Write a program pal.c to test both functions you wrote. Your program should initialize the strings listed in the table below and run isPalindrome and isPalindromeFlexible on each of them. Your program should fill and print the following table, listing each string and the result of the functions on It: (I I represents a space)

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!