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 are separators in c++?

1049


Explain storage qualifiers in c++.

1044


What is while loops?

1003


What is a multimap c++?

1152


Difference between declaration and definition of a variable.

1102


How does a copy constructor differs from an overloaded assignment operator?

984


How would you obtain segment and offset addresses from a far address of a memory location?

1043


Which one is better- macro or function?

1141


When are exception objects created?

1034


What is capacity in vector in c++?

952


Describe the syntax of single inheritance in C++?

1035


What is a storage class?

1201


Can we inherit constructor in c++?

1040


What are the four main data types?

1050


What is a hashmap c++?

1067