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 new in c++?

1100


Does c++ have string data type?

1106


How long will it take to learn programming?

1063


Describe protected access specifiers?

1231


What is virtual destructor ans explain its use?

1130


Should a constructor be public or private?

1035


How do you declare A pointer to function which receives an int pointer and returns a float pointer

1225


What is the purpose of template?

1115


Should the this pointer can be used in the constructor?

1027


What is overloading unary operator?

1090


Explain dangling pointer.

1127


Explain how would you handle a situation where you cannot call the destructor of a local explicitly?

972


Write about c++ storage classes?

1197


Write a program in C++ for Fibonacci series

1211


What is difference between array and vector in c++?

1030