this is a copy of c language that i copied from the date of 19 july.
i just started to learn c++, so i don't really understand the syntax for c..
can some one explain to me how it works to "so called mirror" the words or integers. thank you
need it urgently....
#include <stdio.h>
char *f(char*s)
{char*t=s,*u=t;
while(*u)++u;--u;
while(t<u){char x=*t;*t++=*u;*u--=x;}return s;}
int main ( void )
{
char text[] = "bvx";
puts ( text );
puts ( f ( text ) );
return 0;
}
/* my output
The quick brown fox
xof nworb kciuq ehT
*/