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 fflush c++?

580


What is c++ redistributable?

621


What are iterators in c++?

594


Explain explicit container.

633


Explain the static storage classes in c++.

707






Why null pointer is used?

581


How do you master coding?

562


What is the real purpose of class – to export data?

616


What is searching?

653


What is boyce codd normal form in c++?

694


Why is c++ considered difficult?

645


How to implement is-a and has-a class relationships?

587


how to explain our contribution in the project?

3080


What do you know about near, far and huge pointer?

599


What are the advantages of early binding?

608