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
What is microsoft c++ redistributable 2013?
What is recursion?
What is lambda in c++?
When does a 'this' pointer get created?
Discussion on error handling of C++ .
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.
What parameter does the constructor to an ofstream object take?
When must you use a pointer rather than a reference?
What is ofstream c++?
What is ios :: in in c++?
Is there structure in c++?
What is the use of string in c++?
How long does it take to get good at leetcode?
Explain the concept of friend function in c++?
What is the real purpose of class – to export data?