write program for palindrome
Answer Posted / baskaran
#include<stdio.h>
#include<string.h>
#define size 26
void main()
{
char strsrc[size];
char strtmp[size];
printf("\n Enter String:= ");
gets(strsrc);
strcpy(strtmp,strsrc);
strrev(strtmp);
if(strcmp(strsrc,strtmp)==0)
printf("\n Entered string \"%s\" is palindrome\n",strsrc);
else
printf("\n Entered string \"%s\" is not
Palindrome\n",strsrc);
}
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
What is auto used for in c++?
why is iostream::eof inside a loop condition considered wrong?
Explain public, protected, private in c++?
Why do we need runtime polymorphism in c++?
Why should you learn c++?
Explain the pure virtual functions?
Can you Mention some Application of C/C++?
Why is c++ still best?
What is rvalue?
Is c++ low level?
List the features of oops in c++?
What is the extraction operator and what does it do?
total amount of milk produced each morning and then calculates and outputs the number of cartons needed for this milk , the cost of producing the milk and the profit from producing this milk.
Tell me an example where stacks are useful?
What is abstraction in c++ with example?