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
Is c++ map a hash table?
What is difference between n and endl in c++?
What are the three forms of cin.get() and what are their differences?
What is the v-ptr?
What is the default width for ouputting a long integer using the insertion operator?
Is c++ a float?
Why do we use the using declaration?
Is string data type in c++?
Which one between if-else and switch is more efficient?
Differentiate between late binding and early binding.
Is c++ the most powerful language?
. If employee B is the boss of A and C is the boss of B and D is the boss of C and E is the boss of D. Then write a program using the Database such that if an employee name is Asked to Display it also display his bosses with his name. For eg. If C is displayed it should also display D and E with C?
What do you mean by function and operator overloading in c++?
Why is c++ awesome?
Is eclipse good for c++?