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
Can a class be static in c++?
What are associate containers?
What does std :: flush do?
Define a constructor?
Write a single instruction that will store an EVEN random integer between 54 and 212 inclusive in the variable myran. (NOTE only generate EVEN random numbers)
Explain the isa and hasa class relationships. How would you implement each?
How a new element can be added or pushed in a stack?
Why should we use null or zero in a program?
Describe exception handling concept with an example?
What is cin clear () in c++?
What's the most powerful programming language?
What is using namespace std in c++?
Which operator cannot overload?
What is istream and ostream in c++?
Is linux written in c or c++?