write program for palindrome
Answer Posted / felix
#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 ? | 182 Yes | 97 No |
Post New Answer View All Answers
why is c++ called oops? Explain
What is srand c++?
What is meant by forward referencing and when should it be used?
What is capacity in vector in c++?
What is code reusability in c++?
When should we use multiple inheritance?
Can the creation of operator** is allowed to perform the to-the-power-of operations?
What is virtual function? Explain with an example
Should I learn c or c++ first?
Difference between Abstraction and encapsulation in C++?
What is the difference between object-oriented programming and procedural programming?
What is virtual base class uses?
Describe the syntax of single inheritance in C++?
What is a hashmap c++?
What is anonymous object in c++?