Don't know WTF is happening but the code is showing - "Yes it is a palindrome", even if it is not. Please heeeeeeelp. Preferring direct answers. URGENT.
General Information: I'm in Class XII, using Turbo C++ v3.0 Borland
strrev() reverses the original string.
When comparing a and b, both point to that same (now reversed) string.
What you need to do is to allocate a separate array, and use strcpy() to make a copy of the original string, then reverse that copy only.
Also, main is misusing the character array by declaring an array of pointers, instead of just an array of characters.
Of course a more direct approach would be to not make a copy, and not reverse the string. Instead, use two pointers, set one to point to the start, the other to the end of the string. Then compare character by character until either there is a difference, or the two pointers meet in the middle. Might be an interesting challenge to have a go at that.