Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

write program for palindrome

Answer Posted / sat

#include<stdio.h>
#include<string.h>
void main()
{
char a[40],b[40];
printf("\n Enter String:= ");
gets(a);
strcpy(b,a);
strrev(b);
if(strcmp(b,a)==0)
printf("\n Entered string \"%s\" ispalindrome",b);
else
printf("\n Entered string \"%s\" is not palindrome",a);
}

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the use of lambda in c++?

1080


Define what is constructor?

1116


Explain the concept of dynamic allocation of memory?

1152


What is late binding c++?

1030


What is a flag in c++?

1108


What is wrapper class in c++?

1198


What is object in c++ example?

1166


What is the use of structure in c++?

1081


Why is c++ still best?

1024


True or false, if you keep incrementing a variable, it will become negative a) True b) False c) It depends

2438


Why is main function important?

1173


Why the usage of pointers in C++ is not recommended ?

1518


Why is c++ difficult?

1110


When does a name clash occur in c++?

1215


Write a program to find the Fibonacci series recursively.

1114