69,373
社区成员
发帖
与我相关
我的任务
分享
#include <stdio.h>
#include <string.h>
void reversedisplay(char a[],int no);
int main()
{
char str[80];
int s=0;
strcpy(str,"I Love You!");
reversedisplay(str,s);
return 0;
}
void reversedisplay(char a[],int no)
{
if(a[no])
{
printf("%c",a[no]);
reversedispaly(a,no+1);
printf("%c",a[no]);
}
}