write program for palindrome
Answer Posted / bala murali
#include<stdio.h>
#include<conio.h>
main()
{
char s1,s2;
printf("enter a string:");
gets(s1);
strcpy(s2,s1);
strrev(s2);
if(strcmp(s1,s2))
printf("palindrome:");
else
printf("not a palindrome:");
getch();
}
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
Which bit wise operator is suitable for checking whether a particular bit is on or off?
What are friend functions in C++?
Function can be overloaded based on the parameter which is a value or a reference. Explain if the statement is true.
What are guid?
How const int *ourpointer differs from int const *ourpointer?
Which is best ide for c++?
Is it possible to write a c++ template to check for a function's existence?
what do you mean by volatile variable?
What is a class definition?
What is #include cstdlib in c++?
What are the rules about using an underscore in a c++ identifier?
Define a conversion constructor?
Explain the difference between struct and class in terms of access modifier.
What is the identity function in c++? How is it useful?
What is overloading unary operator?