hi. i am learning C no longer so can any one help me.
this program is Recursive Function or not? Thank you...
#include<stdio.h>
int recurstr(char str[50],int n);
void main()
{
char str[50];
int n;
clrscr();
printf("Enter sentence : ");
gets(str);
printf("Enter times of display : ");
scanf("%d",&n);
recurstr(str,n);
getch();
}
int recurstr(char str[50],int n)
{
if(n==0)
return 0;
else
{
printf("\n%s ",str);
return recurstr(str,n-1);
}
}