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

How long it will take to learn c++?

1047


Explain binary search.

990


What is the average salary of a c++ programmer?

1022


How do I download c++?

1007


What is the difference between interpreters and compilers?

1193


What is type of 'this' pointer?

1067


Can a constructor be private?

1073


Explain how the virtual base class is different from the conventional base classes of the opps.

1171


What is lambda in c++?

1236


what is multi-threading in C++?

1057


What is function overriding in c++?

1071


What is the use of main function in c++?

977


Give an example of run-time polymorphism/virtual functions.

1008


When should overload new operator on a global basis or a class basis?

1081


What is else syntax in c++?

1210