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

#include<stdio.h>
#include<conio.h>
void main()
{
string s1,s2;
printf("Enter the string:");
scanf("%s",s1);
s2=strrev(s1);
if(s1==s2)
{
printf("the given string is palindrome");
}
else
printf("the given string is not palindrome");
}

Is This Answer Correct ?    0 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is virtual destructor ans explain its use?

1128


Explain 'this' pointer and what would happen if a pointer is deleted twice?

1059


Which field is used in c++?

1103


What is stl containers in c++?

1047


Why c++ is created?

1004


What is recursion?

2153


Describe public access specifiers?

1111


Explain selection sorting. Also write an example.

1040


How can we read/write Structures from/to data files?

1125


Why should you learn c++?

1016


How to get the current position of the file pointer?

1036


What is lvalue?

1169


How compile and run c++ program in turbo c++?

1179


What do the keywords volatile and mean mutable?

1050


Is swift better than c++?

944