..

FreePrograms


  CONTACT US   ABOUT US   PRIVACY  DISCLAIMER

FREE C PROGRAMS 

What is C C vs C++ vs Java Program Structure Data Types in C Basic Rules of C & C++
Functions in C If, Else Conditions Loops in C Switch Case Arrays
Pointers Structures in C Strings in C Command Line Arguments Type Casting
Linked Lists Recursion Binary Trees Inheritance Multiple Inheritance
Templates File I/O Object Oriented Programming Data Structures in C C interview Questions

C programming Tutorial : Free C Programs, C Programs Download

....

This function is used to reverse the string

Use of Strrev

#include <stdio.h>

#include<string.h>

void main(void)

{

char str1[31],str2[31];

printf("\nEnter any string");

gets(str1);

strcpy(str2,str1);

strrev(str2);

if((strcmp(str1,str2))=0)

printf("Word%s is a palindrome\n");

else

printf("Word %s is not a palindrome\n");

}

COPYRIGHT 2009 ALL RIGHTS RESERVED FREECPROGRAMS.COM