#include <stdio.h>
void foo(char *s)
{
char *p;
if(s == NULL)
{
return;
}
p = s;
if(*s != '\0')
{
foo(++p);
}
printf("%c",*s);
}
int main()
{
char *s = "12345";
foo(s);
return 0;
}
void foo(char *s)
{
char *p;
if(s == NULL)
{
return;
}
p = s;
if(*s != '\0')
{
foo(++p);
}
printf("%c",*s);
}
int main()
{
char *s = "12345";
foo(s);
return 0;
}
Linux是简单的,你不需要成为天才也能理解这种简单,Windows是复杂的,就算你是天才也不能理解这种复杂