write program for palindrome
Answer Posted / pallavi attarde
#include<iostream.h>
#include<string.h>
int main()
{
char str[25],str1[25];
cout<<"Enter a string: ";
gets(str);
strcpy(str1,str);
strrev(str);
if(strcmp(str,str1)!=0)
{
cout<<"string is not palindrome";
}
else
{
cout<<"string is a palindrome";
}
cout<<endl;
| Is This Answer Correct ? | 596 Yes | 248 No |
Post New Answer View All Answers
Explain how the virtual base class is different from the conventional base classes of the opps.
What do you mean by stack unwinding in c++?
Write a program which uses functions like strcmp(), strcpy()? etc
We all know that a const variable needs to be initialized at the time of declaration. Then how come the program given below runs properly even when we have not initialized p?
Is c++ a good first language to learn?
Explain the use of virtual destructor?
Which programming language is best to learn first?
What is c++ virtual inheritance?
How does code-bloating occur in c++?
What is private public protected in c++?
What is a class definition?
Write a short code using c++ to print out all odd number from 1 to 100 using a for loop
List the features of oops in c++?
Define 'std'.
What is c++ mutable?