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

#include<iostream.h>
#include<conio.h>
#include<string.h>
#include<stdio.h>
void main()
{
clrscr();
char str[30],str1[30];
cout<<"ENTER THE WORD:";
gets(str);
strcpy(str1,str);
strrev(str);
if(strcmp(str,str1)==0)
cout<<"THE WORD IS PALINDROME";
else
cout<<"THE WORD IS NOT PALINDROME";
getch();
}

Is This Answer Correct ?    24 Yes 18 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the restrictions apply to constructors and destructors?

1085


In c++, what is the difference between method overloading and method overriding?

1149


Difference between delete and free.

1086


what is the use of void main() in C++ language?

1125


What is const pointer and const reference?

1172


In what situations do you have to use initialization list rather than assignment in constructors?

1070


How delete [] is different from delete?

1019


What are inline functions? What is the syntax for defining an inline function?

1164


Why is it necessary to use a reference in the argument to the copy constructor?

1118


What is conditions when using boolean operators?

1241


Explain public, protected, private in c++?

1022


Comment on assignment operator in c++.

1124


Explain the extern storage classes in c++.

1058


What is polymorphism in c++? Explain with an example?

1047


How would you implement a substr() function that extracts a sub string from a given string?

1057