write program for palindrome
Answer Posted / sat
#include<stdio.h>
#include<string.h>
void main()
{
char a[40],b[40];
printf("\n Enter String:= ");
gets(a);
strcpy(b,a);
strrev(b);
if(strcmp(b,a)==0)
printf("\n Entered string \"%s\" ispalindrome",b);
else
printf("\n Entered string \"%s\" is not palindrome",a);
}
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Write an algorithm that determines whether or not an almost complete binary tree is a heap.
If I is an integer variable, which is faster ++i or i++?
What do you mean by a template?
Is oops and c++ same?
Can recursive program be written in C++?
What is the use of register keyword with the variables?
Discussion on error handling of C++ .
How the delete operator differs from the delete[]operator?
Explain about vectors in c ++?
What programming language should I learn first?
What is the use of data hiding?
What should main() return in c and c++?
what kind of projects are suitable for c and c++
Can we inherit constructor in c++?
Explain deep copy and a shallow copy?