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

Explain the difference between class and struct in c++?

982


How can I improve my c++ skills?

1063


What is stl containers in c++?

987


How do pointers work?

1126


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

960


What are the data types in c++?

884


What are the differences between the function prototype and the function defi-nition?

1040


How can you tell what shell you are running on unix system?

1052


By using c++ with an example describe linked list?

977


What is the type of 'this' pointer?

968


What is the most useful programming language?

994


When there is a global variable and local variable with the same name, how will you access the global variable?

1043


Show the declaration for a static function pointer.

1005


Define pointers?

1002


Why is it called c++?

971