#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
#include<stdlib.h>
void f(char *p)
{
if (*p == '\0')
{
return;
}
else
{
f(p + 1);
printf("%c\n", *p);
}
}
void main()
{
char *p = "abcd";
f(p);
system("pause");
}
转载于:https://www.cnblogs.com/mfrbuaa/p/5168743.html