Question: 3 Strings-Pointers (30p) Write down a function 'foo' that verifies if a word or sentence (an array of characters) is a 'Palindrome' Palindrome is a
3 Strings-Pointers (30p) Write down a function 'foo' that verifies if a word or sentence (an array of characters) is a 'Palindrome' Palindrome is a word or sentence that can we can read the same from left to right and from right to left Example: 'ADDSSDDA' or 'The mean naem eht' are Palindromes You are not allowed to use ( 1 brackets (except for an array declaration). In other words, you should use the pointers notation You can use string library functions like strlen, stropy... int foo( char str[] ) {
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
