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...

palindrome for strings and numbers----Can anybody do the
prog?

Answer Posted / harish

#include<stdio.h>
#include<conio.h>
#include<string.h>
void main()
{
char a[20],b[20];
int i;
clrscr();
printf("\n Enter the Number or String to find Palindrome");
scanf("%s",a);
strcpy(b,a);
strrev(a);
if(strcmp(a,b)==0)
{
printf("\n Entered data is Palindrome\n");
}
else
{
printf("\n Entered data is not a Palindrome\n");
}
getch();
}

Is This Answer Correct ?    9 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is there any possibility to create customized header file with c programming language?

1106


If I have a char * variable pointing to the name of a function ..

1227


Can a pointer be volatile in c?

1041


What is the difference between printf and scanf )?

1148


Stimulate calculator using Switch-case-default statement for two numbers

3036


please send me the code for multiplying sparse matrix using c

2222


How does pointer work in c?

1193


How to get string length of given string in c?

1121


Difference between pass by reference and pass by value?

1208


How can I copy just a portion of a string?

1363


Write a program which returns the first non repetitive character in the string?

1171


What is volatile variable in c?

1155


What is the size of enum in bytes?

1134


What do mean by network ?

1214


How can you find the exact size of a data type in c?

1044