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

#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 ?    182 Yes 97 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is stream and its types in c++?

1102


Is c++ an integer?

1082


How are virtual functions implemented in c++?

1118


what are function pointers?

1138


What is scope operator in c++?

1131


Evaluate as true or false: !(1 &&0 || !1) a) True b) False c) Invalid statement

1256


Write a code/algo to find the frequency of each element in an array?

1163


Can I learn c++ without knowing c?

1120


Is it possible to provide default values while overloading a binary operator?

1321


Where do I find the current c or c++ standard documents?

1134


Define linked lists with the help of an example.

1078


Define a pdb file.

1126


How one would use switch in a program?

1116


How do we implement inheritance in c++?

1176


What is a pointer with example?

1332