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 are advantages of c++?
Why do we need c++?
Can you be bale to identify between straight- through and cross- over cable wiring? And in what case do you use straight- through and cross-over?
What is a v-table?
What is lambda in c++?
What is new in c++?
What operator is used to access a struct through a pointer a) >> b) -> c) *
describe private access specifiers?
How does com provide language transparency?
Explain the auto storage classes in c++.
What are compilers in c++?
can any one help to find a specific string between html tags
which is changed to a sting..
weather.html looks (for location) is
Write a corrected statement in c++ so that the statement
will work properly. if (4 < x < 11) y=2*x; Explain the differences between private, public and protected and give examples. Would you rather wait for quicksort, linear search, or bubble sort on a 200000 element array? (Or go to lunch...)
a) Quicksort
b) Linear Search
c) Bubble Sort