Write a Program to display reverse of entered string? eg Input abcd Output dcba
Answers
Answered by
1
Answer:
#include<stdio.h>
#include<string.h>
int main()
{
char str[10];
printf("enter a string to be reversed");
scanf("%s",str);
printf("After reversing the string %s",strrev(str));
return 0;
}
Similar questions