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 are pointers, when declared, intialized to a) NULL b) Newly allocated memory c) Nothing. Its random
What is c++ in english?
Differentiate between a pointer and a reference with respect to c++.
What is the main purpose of overloading operators?
What is the use of vtable?
What is a container class?
What are the benefits of pointers?
What is the correct syntax for inheritance a) class aclass : public superclass b) class aclass inherit superclass c) class aclass <-superclass
What is c++ hiding?
How does com provide language transparency?
What is virtual methods?
Explain selection sorting. Also write an example.
How java is different from c and c++?
How to demonstrate the use of a variable?
What problems might the following macro bring to the application?