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 is c++ similar to?

1254


What is istream c++?

1266


How a new operator differs from the operator new?

1183


What is a loop? What are different types of loops in c++?

1177


Explain how to initialize a const data member.

1178


Can non-public members of another instance of the class be retrieved by the method of the same class?

1123


Why do we use string in c++?

998


Can you be able to identify between straight- through and cross- over cable wiring? And in what case do you use straight- through and cross-over?

1159


Where must the declaration of a friend function appear?

1017


What operator is used to access a struct through a pointer a) >> b) -> c) *

1164


What are compilers in c++?

1106


Write an algorithm that determines whether or not an almost complete binary tree is a heap.

3966


What is prototype for that c string function?

1193


write a programme to get a character and thier ASCII value

3114


When does the c++ compiler create temporary variables?

1086