write program for palindrome
Answer Posted / md. arif shahmim
#include<stdio.h>
#include<string.h>
#define size 26
void main()
{
char strsrc[size];
char strtmp[size];
clrscr();
printf("\n Enter String:= "); gets(strsrc);
strcpy(strtmp,strsrc);
strrev(strtmp);
if(strcmp(strsrc,strtmp)==0)
printf("\n Entered string \"%s\" ispalindrome",strsrc);
else
printf("\n Entered string \"%s\" is not
palindrome",strsrc);
getch();
}
| Is This Answer Correct ? | 16 Yes | 23 No |
Post New Answer View All Answers
Which bit wise operator is suitable for putting on a particular bit in a number?
What are the c++ access specifiers?
Why we use #include iostream in c++?
What is the difference between equal to (==) and assignment operator (=)?
What is code reusability in c++?
What is a loop? What are different types of loops in c++?
What are stacks?
Can a list of string be stored within a two dimensional array?
How do you invoke a base member function from a derived class in which you have not overridden that function?
Is facebook written in c++?
Are c and c++ different?
What is time h in c++?
Why c++ is faster than java?
What is #include iostream in c++?
What is a storage class?