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

#include<stdio.h>
#include<string.h>
#define size 26

void main()
{
char strsrc[size];
char strtmp[size];

clrscr();
printf("\n Enter String:= "); gets(strsrc);

strcpy(strtmp,strsrc);
strrev(strtmp);

if(strcmp(strsrc,strtmp)==0)
printf("\n Entered string \"%s\" ispalindrome",strsrc);
else
printf("\n Entered string \"%s\" is not
palindrome",strsrc);
getch();
}

Is This Answer Correct ?    12 Yes 13 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

If a header file is included twice by mistake in the program, will it give any error?

1000


What is the most powerful coding language?

1007


Is turbo c++ free?

1025


What new()is different from malloc()?

1060


What is a pointer with example?

1174


What is the difference between structure and class?

1174


Explain all the C++ concepts using examples.

1158


Why are pointers used?

952


What is a dangling pointer in c++?

1094


What programming language should I learn first?

1049


Write about the retrieval of n number of objects during the process of delete[]p?

981


How can you quickly find the number of elements stored in a static array? Why is it difficult to store linked list in an array?

946


What is setw manipulator in c++?

1030


Why null pointer is used?

1004


Can manipulators fall in love?

968