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 the difference between *p++ and (*p)++ ?
Explain polymorphism?
How does c++ structure differ from c++ class?
What are the unique features of C++.
Define pre-condition and post-condition to a member function in c++?
What are advantages of using friend classes?
What is while loops?
Which software is used to run c++ program?
Which field is used in c++?
Explain what are accessor methods?
Explain object slicing in c++?
How do you sort a sort function in c++ to sort in descending order?
What does 7/9*9 equal ? a) 1 b) 0.08642 c) 0
What is this weird colon-member (" : ") syntax in the constructor?
How the memory management in vectors are being done. What happens when the heap memory is full, and how do you handle it ?