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

Is c++ map a hash table?

1019


Is there finally in c++?

1101


Can non graphic characters be used and processed in C++?

1193


What is data hiding c++?

1039


why and when we can declar member fuction as a private in the class?

2070


Name the debugging methods that are used to solve problems?

1081


What is java and c++?

1171


Is main a class in c++?

1000


What is lambda expression c++?

1054


How do I run a program in notepad ++?

1099


What is the use of setfill in c++?

1073


What are mutator methods in c++?

1160


What are the rules about using an underscore in a c++ identifier?

1179


When one must use recursion function? Mention what happens when recursion functions are declared inline?

1186


What is ios class in c++?

1107