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
What is boyce codd normal form in c++?
Describe exception handling concept with an example?
When are exception objects created?
why and when we can declar member fuction as a private in the class?
Define Virtual function in C++.
What do you understand by pure virtual function? Write about its use?
Name the debugging methods that are used to solve problems?
Explain differences between new() and delete()?
Explain what is oop?
Which bit wise operator is suitable for putting on a particular bit in a number?
what are function pointers?
Which should be more useful: the protected and public virtuals?
What is the arrow operator in c++?
Is c# written in c++?
How would you use qsort() function to sort an array of structures?