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 / ram thilak.p

#include<stdio.h>
#include<conio.h>
#include<string.h>

void main()
{
char a[20];
int c;
printf("\n\n\t Enter A String:");
scanf("%s",a);
c=strcmpi(strrev(a),a);
if(c==0)
{printf("\n %s is a Palindrome",a);}
else
{printf("\n %s is not a Palindrome",a);)
getch();
}

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between *p++ and (*p)++ ?

1293


Explain polymorphism?

1032


How does c++ structure differ from c++ class?

1056


What are the unique features of C++.

1038


Define pre-condition and post-condition to a member function in c++?

1090


What are advantages of using friend classes?

1017


What is while loops?

997


Which software is used to run c++ program?

944


Which field is used in c++?

1050


Explain what are accessor methods?

1072


Explain object slicing in c++?

1016


How do you sort a sort function in c++ to sort in descending order?

941


What does 7/9*9 equal ? a) 1 b) 0.08642 c) 0

909


What is this weird colon-member (" : ") syntax in the constructor?

966


How the memory management in vectors are being done. What happens when the heap memory is full, and how do you handle it ?

2276