Try this
Code
void reverse (int idx, char *str ) {
if (--idx < 0 ) {
return ;
} else {
putchar ( *(str + idx) ) ;
reverse (idx, str) ;
}
}
Login to rate this answer.
Code
void reverse(char *str)
{
int i = 0;
for (i = 0; str[i] !=; i++) {
getch();
}
Login to rate this answer.
ankur
Answered On : Jun 7th, 2012
Code
#include<stdio.h>
#include<string.h>
void main()
{
int a,i;
char b[100];
char s[100]="in this world let there be a name and fame to those who can";
a=strlen(s);
for(i=0;i<=s;i++)
{
b[i]=s[a-i];
}
}
Login to rate this answer.
mahamad
Answered On : Jun 14th, 2012
Code
#include<stdio.h>
#include<conio.h>
#include<string.h>
main()
{
char s[100];
int i;
printf("Enter ANy String:=>");
scanf("%s",&s);
printf("-----------Reverse String is---------------
");
for(i=strlen(s);i>=1;i--)
{
}
getch();
return 0;
}
Login to rate this answer.