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
Is overriding possible in c++?
Explain the term memory alignment?
What is c++ 11 and c++ 14?
What is c++ prototype?
What is ios class in c++?
What is general format for a prototype?
What are activex and ole?
Why we use #include iostream in c++?
What is meant by entry controlled loop? What all C++ loops are exit controlled?
What is a string example?
Which software is best for programming?
What is c++ stringstream?
What is the best way to declare and define global variables?
Evaluate the following expression as C++ would do :8 * 9 + 2 * 5 a) 82 b) 79 c) 370 d) list
Can we run c program in turbo c++?