C program source code to print reversed string using string function

C program source code to print reversed string using string function


Write a C program  to print reversed string using string function

C Program source code

#include<stdio.h>
#include<conio.h>
#include<string.h>
int main()
{
char name[100];
printf("Enter any character:");
gets(name);
strrev(name);
printf("The character after reversing is:");
puts(name);
getch();
return 0;
}




You can Browse related article below for more information and program code related to string function

 Does above is helpful , Post you views in comment

DO NOT MISS OTHER C PROGRAMMING TUTORIAL

* indicates required



Comments

Popular posts from this blog

Copy Constructor

Print pattern in c - explore new perspectives in pattern printing

C program to check if the supplied year is leap year or not.