write program for palindrome
Answer Posted / ram thilak.p
#include<stdio.h>
#include<conio.h>
#include<string.h>
void main()
{
char a[20];
int c;
printf("\n\n\t Enter A String:");
scanf("%s",a);
c=strcmpi(strrev(a),a);
if(c==0)
{printf("\n %s is a Palindrome",a);}
else
{printf("\n %s is not a Palindrome",a);)
getch();
}
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
What is new in c++?
Does c++ have string data type?
How long will it take to learn programming?
Describe protected access specifiers?
What is virtual destructor ans explain its use?
Should a constructor be public or private?
How do you declare A pointer to function which receives an int pointer and returns a float pointer
What is the purpose of template?
Should the this pointer can be used in the constructor?
What is overloading unary operator?
Explain dangling pointer.
Explain how would you handle a situation where you cannot call the destructor of a local explicitly?
Write about c++ storage classes?
Write a program in C++ for Fibonacci series
What is difference between array and vector in c++?