Please see the below C sharp example I have used the "Reverse" in it:

1)
int main()

{
int i,j,f=0;
char a[0];
clrscr();
get (a);
for(i=0;a[i]!=’\0’;i++)
{
}
i--;
for(j=0;a[j]!=’\0’;j++,i--)
{
If(a[i]!=a[j])
MessageBox.Show("String is not palindrome");
Return(0);
}
}
MessageBox.Show("String is palindrome");
Retuen(0);
}