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 fflush c++?
What is c++ redistributable?
What are iterators in c++?
Explain explicit container.
Explain the static storage classes in c++.
Why null pointer is used?
How do you master coding?
What is the real purpose of class – to export data?
What is searching?
What is boyce codd normal form in c++?
Why is c++ considered difficult?
How to implement is-a and has-a class relationships?
how to explain our contribution in the project?
What do you know about near, far and huge pointer?
What are the advantages of early binding?