P164. Program to print string using recursive function.
#include<stdio.h>
void
print(char *);
void
main()
{
char ch[10]="Chinmay";
print(ch);
printf("\n");
}
void
print(char *p)
{
if(*p)
{
printf("%c",*p++);
print(p);
}
}
Comments
Post a Comment