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 advantages of using friend classes?

1152


What is virtual base class?

1083


Is it possible to pass an object of the same class in place of object reference to the copy constructor?

1047


What are c++ tokens?

1061


What are the advantages of pointers?

1068


What is data abstraction? How is it different from data encapsulation?

1006


What is the difference between struct and class?

1560


What is an html tag?

1147


List the special characteristics of constructor.

1179


Write a program to interchange 2 variables without using the third one.

1058


Should the this pointer can be used in the constructor?

1027


Why cout is used in c++?

1026


How do you clear a map in c++?

1127


What is virtual methods?

1124


How many types of scopes are there in c++?

1108