with char arrays, it could be:
ispalindrome := true;
for i := 0 to arr.length /2 do
ispalindrome := ispalindrome and (arr[i] == arr[arr.length - i]);
just take the same principle with memory addresses, but bear in mind that only works if the word has an even number of characters.
Last edited by MattEvans; Jul 20th, 2006 at 8:58 pm.
Moderator
Featured Poster
Reputation Points: 522
Solved Threads: 64
Veteran Poster
Offline 1,091 posts
since Jul 2006