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 / mojib khan

#include<stdio.h>
#include<conio.h>
#include<string.h>
void main()
{
char str1[30],str2[30];
int l;
clrscr();
printf("Enter the string \t");
gets(str1);
strrev(str1);//for reverse string
strcpy(str1,str2);//copy str1 to str2
l=strcmp(str2,str1); //comparing strings it will return 0/1
if(l==0)
{
printf("\nString is Palindrom");
}
else
printf("String is not palindrom");
getch();
}

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Define private, protected and public access control.

1076


How do you show the declaration of a virtual constructor?

903


What is a manipulative person?

953


What is the use of this pointer in c++?

975


What are activex and ole?

1015


Does c++ support multilevel and multiple inheritances?

959


How can a called function determine the number of arguments that have been passed to it?

1091


Can a built-in function be recursive?

983


Is c++ used anymore?

1047


What is the best c++ ide?

1106


Can you please explain the difference between using macro and inline functions?

1010


Can you sort a set c++?

953


Difference between overloaded functions and overridden functions

1012


Can we use struct in c++?

980


Can we change the basic meaning of an operator in c++?

1084