hay i want reserve without chang index for array exmple with change index:
char array[20]; int i,j; gets(array); j=strlen(array); for(i=j-1;i>=0;i--) {printf("%c",array[i]) } i want use (strncat & strncpy with for)...for Reverse string but i don't know how i can do this :: ex ::
char array[20]; int i,j; j=strlen(array); for(*******) { strncat(****) or strcat(***) or strncpy(***) or strcpy; } and in the end i want Reverse string :^) :^)