Sir's:
I have completed the program
But I don't understand fully how the reverse of strings works
This is the program:
for (i=0;i<x*0.5;i++)
{
ch=a[i];
a[i]=a[(x-1)-i];
a[(x-1)-i]=ch;
}
I can't understand this part
i<x*0.5 ?????
how did it became like that??
thank you for helping me in advance