C program source code to print reversed string
C program source code to print reversed string
Write a C program to print reversed string
C Program source code
#include<stdio.h>
#include<string.h>
#include<conio.h>
int main()
{
char a[100];
int i,n;
printf("Enter any word:\n");
gets(a);
n=strlen(a);
printf("The reversed array is:\n" );
for(i=n-1; i>=0; i--)
printf("%c",a[i]);
getch();
return 0;
}
You can Browse related article below for more information and program code related to recursive function call
Does above is helpful , Post you views in comment
Comments
Post a Comment