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

What is this weird colon-member (" : ") syntax in the constructor?

982


What are the advantages of using const reference arguments in a function?

1040


What do you mean by delegate? Can a user retain delegates?

889


What is the use of class in c++?

1023


Why do we use setw in c++?

1065


Is linux written in c or c++?

1000


Do you know what are pure virtual functions?

1112


What is a terminating character in c++?

1336


Which operations are permitted on pointers?

952


how to explain our contribution in the project?

3648


What is lazy initialization in c++?

1067


What is the difference between *p++ and (*p)++ ?

1306


What is meant by entry controlled loop?

1068


How does class accomplish data hiding in c++?

1134


What does std :: flush do?

1082