write program for palindrome
Answer Posted / anirban
#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 ? | 12 Yes | 13 No |
Post New Answer View All Answers
Why is it called c++?
What is scope resolution operator in c++ with example?
What is a v-table?
Is it possible to have a recursive inline function in c++?
What is binary object model?
Why would you use pointers in c++?
What programming language should I learn first?
Write about the members that a derived class can add?
Can manipulators fall in love?
Define what is constructor?
Explain method of creating object in C++ ?
Difference between class and structure.
what is a reference variable in C++?
Describe Trees using C++ with an example.
What is a constant reference?