write program for palindrome
Answer Posted / ram srikanth
#include<stdio.h>
#include<conio.h>
#include<string.h>
main()
{
char n[50],m[50];
clrscr();
printf("Enter a string");
scanf("%s",n);
strcpy(m,n);
strrev(m);
if (strcpy(n,m)==0) printf("Palindrome");
else printf("not a palindrome");
getch();
}
| Is This Answer Correct ? | 2 Yes | 2 No |
Post New Answer View All Answers
What are c++ stream classes?
Explain shallow copy?
What is double in c++?
What are the advantages of inheritance in c++?
What is binary search in c++?
How const int *ourpointer differs from int const *ourpointer?
Differences between private, protected and public and give examples.
Can I learn c++ without c?
Write a program in c++ to print the numbers from n to n2 except 5 and its multiples
What is the correct syntax for inheritance a) class aclass : public superclass b) class aclass inherit superclass c) class aclass <-superclass
Tell me what are static member functions?
what are function pointers?
Which is best ide for c++?
Why c++ is called oop?
Write about an iterator class?