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

#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 ?    182 Yes 97 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are manipulators used for?

1056


Why do you use the namespace feature?

1053


How c functions prevents rework and therefore saves the programers time as wel as length of the code ?

1048


Can java be faster than c++?

1118


What are associate containers?

991


Difference between Abstraction and encapsulation in C++?

1088


How can you quickly find the number of elements stored in a static array?

1064


Why can’t you call invariants() as the first line of your constructor?

980


Is c++ a good beginners programming language?

1026


Is c++ a good first language to learn?

1030


What is atoi in c++?

1026


How can you differentiate between inheritance and implementation in c++?

1166


Define upcasting.

995


Which software is used to run c++ program?

956


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

1012