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

Why we use #include iostream in c++?

1058


Can a program run without main in c++?

1213


Is c++ map a hash table?

1028


Explain function overloading

1021


write a programme to get a character and thier ASCII value

3047


why is iostream::eof inside a loop condition considered wrong?

1061


Write an algorithm that determines whether or not an almost complete binary tree is a heap.

3922


an operation between an integer and real always yeilds a) integer result b) real result c) float result

1156


State the difference between pre and post increment/decrement operations.

1084


How do you master coding?

1039


What is flush () in c++?

1082


List the merits and demerits of declaring a nested class in C++?

1032


Define a nested class. Explain how it can be useful.

1084


What are the characteristics of friend functions?

1020


Which compiler does turbo c++ use?

1082