Question: If a given array is a palindrome, then you will read it the same backward as forward. For example; A1= {1,2,3,4,3,2,1} is palindrome and A2={1,2,3,5,2,1)

If a given array is a palindrome, then you will read it the same backward as forward. For example; A1= {1,2,3,4,3,2,1} is palindrome and A2={1,2,3,5,2,1) is not palindrome array. Assuming the following isPalindrome recursive function that checks if a given array is palindrome or not, fill the blanks in isPalindrome function to correctly do its operation. bool ispalindrome (int array[], int start, int end) { if (start >= end) return ---- if (array(start] != array[end] ) return false; a return } O false isPalindrome(array, start, end -1) O true isPalindrome(array, start + 1, end) O true isPalindrome(array, start + 1, end -1) O false isPalindromelarray, start + 1. end -1)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
