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 a node class in c++?
Why do we learn c++?
What is endl c++?
Is java as fast as c++?
What are manipulators in c++ with example?
Why is c++ still popular?
Write about an iterator class?
What is a pdb file?
Draw a flow chart and write a program for the difference between the sum of elements with odd and even numbers. Two dimensional array.
What is the extraction operator and what does it do?
How delete [] is different from delete?
What is the disadvantage of using a macro?
Tell me can a pure virtual function have an implementation?
Is c++ the hardest language?
Is dev c++ free?