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
If I is an integer variable, which is faster ++i or i++?
Array base access faster or pointer base access is faster?
What is malloc in c++?
What is an orthogonal base class in c++?
What does obj stand for?
What are protected members in c++?
How do you define a class in c++?
Explain the uses oof nested class?
What is conditions when using boolean operators?
What do you mean by early binding?
What is vector processing?
What is the meaning of c++?
How can I learn dev c++ programming?
Can we inherit constructor in c++?
Which operator cannot overload?