Program for string function strrev() in c programming language
/*Program for string
function strrev() in c programming language*/
#include<stdio.h>
#include<conio.h>
#include<string.h>
void main()
{
char str1[20];
clrscr();
puts("Enter your string :");
gets(str1);
puts("String after reverse :");
strrev(str1);
puts(str1);
getch();
}
=================
OUTPUT:-
Enter your string :
system
String after reverse :
metsys
Comments
Post a Comment