Dec 22, 2009 at 6:41pm
I made this source-code but i can't run it:
#include <stdio.h>
#include <string.h>
void reverse (char *s)
{
int c,i,j;
for ( i = 0 , j = strlen(s)-1;i<j;i++,j--)
{
c = s [ i ] ;
s [ i ] = s [ j ] ;
s [ j ] = c ;
}
}
Dec 22, 2009 at 7:03pm
Well it would help if you had a call to main in there somewhere....
Dec 22, 2009 at 10:19pm
you mean instead to put void reverse (char *s) to put main()