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

why is c++ called oops? Explain

983


What is srand c++?

1047


What is meant by forward referencing and when should it be used?

946


What is capacity in vector in c++?

930


What is code reusability in c++?

1180


When should we use multiple inheritance?

987


Can the creation of operator** is allowed to perform the to-the-power-of operations?

947


What is virtual function? Explain with an example

1030


Should I learn c or c++ first?

1068


Difference between Abstraction and encapsulation in C++?

1068


What is the difference between object-oriented programming and procedural programming?

1151


What is virtual base class uses?

1237


Describe the syntax of single inheritance in C++?

1020


What is a hashmap c++?

1043


What is anonymous object in c++?

1028