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

Which bit wise operator is suitable for checking whether a particular bit is on or off?

1082


What are friend functions in C++?

1121


Function can be overloaded based on the parameter which is a value or a reference. Explain if the statement is true.

1169


What are guid?

1305


How const int *ourpointer differs from int const *ourpointer?

1191


Which is best ide for c++?

1067


Is it possible to write a c++ template to check for a function's existence?

1076


what do you mean by volatile variable?

1106


What is a class definition?

1119


What is #include cstdlib in c++?

1232


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

1253


Define a conversion constructor?

1154


Explain the difference between struct and class in terms of access modifier.

1225


What is the identity function in c++? How is it useful?

1097


What is overloading unary operator?

1132