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


Please Help Members By Posting Answers For Below Questions

What is boyce codd normal form in c++?

694


Describe exception handling concept with an example?

559


When are exception objects created?

611


why and when we can declar member fuction as a private in the class?

1600


Define Virtual function in C++.

625






What do you understand by pure virtual function? Write about its use?

583


Name the debugging methods that are used to solve problems?

581


Explain differences between new() and delete()?

618


Explain what is oop?

619


Which bit wise operator is suitable for putting on a particular bit in a number?

721


what are function pointers?

581


Which should be more useful: the protected and public virtuals?

602


What is the arrow operator in c++?

560


Is c# written in c++?

518


How would you use qsort() function to sort an array of structures?

724