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

Which bit wise operator is suitable for putting on a particular bit in a number?

1149


What are the c++ access specifiers?

1362


Why we use #include iostream in c++?

1007


What is the difference between equal to (==) and assignment operator (=)?

1031


What is code reusability in c++?

1191


What is a loop? What are different types of loops in c++?

1075


What are stacks?

1016


Can a list of string be stored within a two dimensional array?

968


How do you invoke a base member function from a derived class in which you have not overridden that function?

1079


Is facebook written in c++?

956


Are c and c++ different?

941


What is time h in c++?

1094


Why c++ is faster than java?

1015


What is #include iostream in c++?

1012


What is a storage class?

1197