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 the use of typedef?

1102


How did c++ get its name?

1036


What are the important differences between c++ and java?

1158


Which is better turbo c++ or dev c++?

1081


What do c++ programmers do?

1066


Describe new operator and delete operator?

1089


What does floor mean in c++?

1072


Explain binary search.

995


What is pointer in c++ with example?

1079


Can a constructor return a value?

1269


Is dev c++ free?

1055


What is the syntax for a for loop?

1148


Can I learn c++ as my first language?

1113


Explain what you mean by a pointer.

1110


Differentiate between a constructor and a destructor in c++.

1020