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

What are the advantages of c++ over c?

1021


What is the role of C++ shorthand's?

1234


what is COPY CONSTRUCTOR and what is it used for?

1029


Is nan a c++?

1102


Is c++ double?

989


Explain 'this' pointer and what would happen if a pointer is deleted twice?

1022


What header file is needed for exit(); a) stdlib.h b) conio.h c) dos.h

1013


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

975


Why c++ is called oop?

1063


What is atoi in c++?

1026


Will c++ be replaced?

1005


What is the difference between the functions memmove() and memcpy()?

1082


What is const pointer and const reference?

1098


What are the various arithmetic operators in c++?

1081


Can we get the value of ios format flags?

1086