DZone Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world
å—串å轉
// description of your code here
#include <stdio.h>
#include <stdlib.h>
int ind = 0;
void stringReverse(char *c)
{
if(c[ind] != '\0')
{
char tmp = c[ind];
ind++;
stringReverse(c);
printf("%c", tmp);
}
}
void main()
{
char in[100];
printf("輸入å—串:");
scanf("%s", &in);
printf("å轉後:");
stringReverse(in);
printf("\n");
system("pause");
}




