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 microsoft c++ redistributable 2013?

766


What is recursion?

1140


What is lambda in c++?

865


When does a 'this' pointer get created?

803


Discussion on error handling of C++ .

828






A company pays its salespeople on a commission basis. The salespeople receive $200 per week plus 9 percent of their gross sales for that week. For example, a saleperson who sells $5000 worth of merchandise in a week receives $200 plus 9 percent of $5000, or a total of $650. You have been supplied with a list of items sold by each salesperson. The values of these items are as follows: Item Value A 239.99 B 129.75 C 99.95 D 350.89 Write a program that inputs one salesperson's items sold in a week (how many of item A? of item B? etc.) and calculates and displays that salesperson's earnings for that week.

3615


What parameter does the constructor to an ofstream object take?

806


When must you use a pointer rather than a reference?

778


What is ofstream c++?

800


What is ios :: in in c++?

805


Is there structure in c++?

761


What is the use of string in c++?

729


How long does it take to get good at leetcode?

867


Explain the concept of friend function in c++?

805


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

818