Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

write program for palindrome

Answer Posted / sat

#include<stdio.h>
#include<string.h>
void main()
{
char a[40],b[40];
printf("\n Enter String:= ");
gets(a);
strcpy(b,a);
strrev(b);
if(strcmp(b,a)==0)
printf("\n Entered string \"%s\" ispalindrome",b);
else
printf("\n Entered string \"%s\" is not palindrome",a);
}

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write an algorithm that determines whether or not an almost complete binary tree is a heap.

3926


If I is an integer variable, which is faster ++i or i++?

1071


What do you mean by a template?

1070


Is oops and c++ same?

1052


Can recursive program be written in C++?

1233


What is the use of register keyword with the variables?

944


Discussion on error handling of C++ .

1124


How the delete operator differs from the delete[]operator?

1097


Explain about vectors in c ++?

1033


What programming language should I learn first?

1103


What is the use of data hiding?

1019


What should main() return in c and c++?

1026


what kind of projects are suitable for c and c++

1050


Can we inherit constructor in c++?

1097


Explain deep copy and a shallow copy?

1069