Question: Please, solve using c++ [Q.2] A word is called palindrome if reads the same backward as forward, for example: madam, level, and racecar. Write a
Please, solve using c++
![Please, solve using c++ [Q.2] A word is called palindrome if reads](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/09/66fa34b10362f_52066fa34b09a119.jpg)
[Q.2] A word is called palindrome if reads the same backward as forward, for example: madam, level, and racecar. Write a program that reads a string as an input and prints out if that string is a palindrome or not. Your program should implement a function that takes only a pointer of char for that string and check whether it is a palindrome string or not. You are not allowed to use the string function length(), however, you can define your own length function instead. (Hint: you need to define another pointer and define the size of the string]
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
