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 is while loops?

1052


Can we make any program in c++ without using any header file and what is the shortest program in c++.

1134


What are the advantages of using const reference arguments in a function?

1077


What is the maximum value of a unsigned char a) 255 b) 256 c) 128

1073


What is wrapper class in c++?

1120


Is c++ a float?

1066


What is the best way to take screenshots of a window with c++ in windows?

1056


Write a program which employs Recursion

1238


Show the declaration for a pointer to function returning long and taking an integer parameter.

1138


What are vectors used for in c++?

1076


What do you mean by inheritance in c++? Explain its types.

1151


What are activex and ole?

1059


What is polymorphism in c++? Explain with an example?

1034


Write about a nested class and mention its use?

1101


Evaluate as true or false: !(1 &&0 || !1) a) True b) False c) Invalid statement

1186