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 / baskaran

#include<stdio.h>
#include<string.h>
#define size 26
void main()
{
char strsrc[size];
char strtmp[size];

printf("\n Enter String:= ");
gets(strsrc);
strcpy(strtmp,strsrc);
strrev(strtmp);
if(strcmp(strsrc,strtmp)==0)
printf("\n Entered string \"%s\" is palindrome\n",strsrc);
else
printf("\n Entered string \"%s\" is not
Palindrome\n",strsrc);
}

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is auto used for in c++?

1109


why is iostream::eof inside a loop condition considered wrong?

1112


Explain public, protected, private in c++?

1070


Why do we need runtime polymorphism in c++?

1073


Why should you learn c++?

1063


Explain the pure virtual functions?

1171


Can you Mention some Application of C/C++?

1126


Why is c++ still best?

1024


What is rvalue?

1194


Is c++ low level?

1074


List the features of oops in c++?

1095


What is the extraction operator and what does it do?

1124


total amount of milk produced each morning and then calculates and outputs the number of cartons needed for this milk , the cost of producing the milk and the profit from producing this milk.

2648


Tell me an example where stacks are useful?

1098


What is abstraction in c++ with example?

1208