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 / baskaran

#include<stdio.h>
#include<string.h>
#define size 26
void main()
{
char strsrc[size];
char strtmp[size];

printf("\n Enter String:= ");
gets(strsrc);
strcpy(strtmp,strsrc);
strrev(strtmp);
if(strcmp(strsrc,strtmp)==0)
printf("\n Entered string \"%s\" is palindrome\n",strsrc);
else
printf("\n Entered string \"%s\" is not
Palindrome\n",strsrc);
}

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you establish an is-a relationship?

1144


What is an incomplete type in c++?

1273


How many ways can a variable be initialized into in C++?

1014


Explain the difference between c++ and java.

1108


What are put and get pointers?

1118


Can we use struct in c++?

1016


How do pointers work?

1173


How do you declare A pointer to a function which receives nothing and returns nothing

1231


What is a forward referencing and when should it be used?

1162


What is the equivalent of Pascal's Real a) unsigned int b) float c) char

1014


What is the difference between while and do while loop? Explain with examples.

1105


What is a binary file? List the merits and demerits of the binary file usagein C++.

1299


What are enumerations?

1101


an integer constant must have atleast one a) character b) digit c) decimal point

1024


What do c++ programmers do?

1053