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 c++ similar to?
What is istream c++?
How a new operator differs from the operator new?
What is a loop? What are different types of loops in c++?
Explain how to initialize a const data member.
Can non-public members of another instance of the class be retrieved by the method of the same class?
Why do we use string in c++?
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?
Where must the declaration of a friend function appear?
What operator is used to access a struct through a pointer a) >> b) -> c) *
What are compilers in c++?
Write an algorithm that determines whether or not an almost complete binary tree is a heap.
What is prototype for that c string function?
write a programme to get a character and thier ASCII value
When does the c++ compiler create temporary variables?