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 the difference between linear list linked representaion and linked representation? what is the purpose of representing the linear list in linked represention ? is it not avoiding rules of linear represention?
What is the full form nasa?
What is diamond problem in c++?
Why #include is used?
Can we distribute function templates and class templates in object libraries?
Describe public access specifiers?
What is const in c++?
What is pointer in c++ with example?
Why main function is special in c++?
What is the difference between an array and a list?
What is size_type?
Is sorted c++?
Do class declarations end with a semicolon?
What do nonglobal variables default to a) auto b) register c) static
Explain object slicing in c++?