Overload the two functions named as check Palindrome. The first one should have a string as parameter and the second one must have an integer value. This function should return true if the provided input is palindrome otherwise return false. Display the message on console whether the provided input is "palindrome" or not.
c++ code
Overload the two functions named as check Palindrome. The first one should have a string as parameter
and the second one must have an integer value. This function should return true if the provided input is
palindrome otherwise return false. Display the message on console whether the provided input is
"palindrome" or not.
Write a main function to test the following cases:
checkPalindrome("1122")
checkPalindrome("1212")
checkPalindrome("1221")
checkPalindrome("121")
checkPalindrome("11")
checkPalindrome("1")
checkPalindrome(" ")
checkPalindrome(1122)
checkPalindrome(1212)
checkPalindrome(1221)
checkPalindrome(121)
checkPalindrome(11)
checkPalindrome(1)
Step by step
Solved in 3 steps with 2 images