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 / bala murali

#include<stdio.h>
#include<conio.h>
main()
{
char s1,s2;
printf("enter a string:");
gets(s1);
strcpy(s2,s1);
strrev(s2);
if(strcmp(s1,s2))
printf("palindrome:");
else
printf("not a palindrome:");
getch();
}

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are c++ files?

1139


What is buffering in c++?

1059


Why is that unsafe to deal locate the memory using free( ) if it has been allocated using new?

1074


Does c++ support multilevel and multiple inheritances?

1005


What is the history of c++?

1071


What is a vector c++?

1171


Is there any difference between int [] a and int a [] in c++?

1014


What is vector pair in c++?

1221


Difference between pointer to constant and constant pointer to a constant. Give example.

1114


Why was c++ created?

1026


How to give an alternate name to a namespace?

1082


Can c++ be faster than c?

1030


What are c++ stream classes?

1046


What is data binding in c++?

956


Which programming language should I learn first?

1086