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
Write a struct time where integer m, h, s are its members?
Write bites in Turbo c++ Header ("Include") Files.
Why was c++ created?
What is the difference between the functions rand(), random(), srand() and randomize()?
Explain the isa and hasa class relationships.
What is the syntax for a for loop?
why is c++ called oops? Explain
What is a syntax in c++?
what is oops and list its features in c++?
How the endl and setw manipulator works?
Which software is used for c++ programming?
When you overload member functions, in what ways must they differ?
How do you establish an is-a relationship?
Is c++ the hardest language?
What are c++ storage classes?