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 / ram srikanth

#include<stdio.h>
#include<conio.h>
#include<string.h>
main()
{
char n[50],m[50];
clrscr();
printf("Enter a string");
scanf("%s",n);
strcpy(m,n);
strrev(m);
if (strcpy(n,m)==0) printf("Palindrome");
else printf("not a palindrome");
getch();
}

Is This Answer Correct ?    2 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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

1213


Who made c++?

1133


Explain one-definition rule (odr).

1170


What does catch(…) mean?

1169


Write a short code using c++ to print out all odd number from 1 to 100 using a for loop

1081


Why is polymorphism useful?

1108


Write a C/C++ program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the maximum number of concurrent threads that the InnoDB plug-in can create

2672


Write about all the implicit member functions of a class?

1118


What is searching?

1194


What is the type of 'this' pointer? When does it get created?

997


What is the difference between while and do while loop? Explain with examples.

1160


What is wrapper class in c++?

1196


What is flush c++?

1072


Name the operators that cannot be overloaded in C++?

1110


What data structure is fastest, on average, for retrieving data: a) Binary Tree b) Hash Table c) Stack

1125