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 / md. arif shahmim

#include<stdio.h>
#include<string.h>
#define size 26

void main()
{
char strsrc[size];
char strtmp[size];

clrscr();
printf("\n Enter String:= "); gets(strsrc);

strcpy(strtmp,strsrc);
strrev(strtmp);

if(strcmp(strsrc,strtmp)==0)
printf("\n Entered string \"%s\" ispalindrome",strsrc);
else
printf("\n Entered string \"%s\" is not
palindrome",strsrc);
getch();
}

Is This Answer Correct ?    16 Yes 23 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write a struct time where integer m, h, s are its members?

962


Write bites in Turbo c++ Header ("Include") Files.

1269


Why was c++ created?

1030


What is the difference between the functions rand(), random(), srand() and randomize()?

1292


Explain the isa and hasa class relationships.

1039


What is the syntax for a for loop?

1145


why is c++ called oops? Explain

1051


What is a syntax in c++?

1163


what is oops and list its features in c++?

1059


How the endl and setw manipulator works?

1017


Which software is used for c++ programming?

1084


When you overload member functions, in what ways must they differ?

1048


How do you establish an is-a relationship?

1161


Is c++ the hardest language?

990


What are c++ storage classes?

1104