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
Is c++ map a hash table?
Is there finally in c++?
Can non graphic characters be used and processed in C++?
What is data hiding c++?
why and when we can declar member fuction as a private in the class?
Name the debugging methods that are used to solve problems?
What is java and c++?
Is main a class in c++?
What is lambda expression c++?
How do I run a program in notepad ++?
What is the use of setfill in c++?
What are mutator methods in c++?
What are the rules about using an underscore in a c++ identifier?
When one must use recursion function? Mention what happens when recursion functions are declared inline?
What is ios class in c++?