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

Is c++ a programming language?

1071


Can a constructor return a value?

1238


what is VOID?

1061


What is the keyword auto for?

1033


What do you mean by friend class & friend function in c++?

1054


What happens when the extern "c" char func (char*,waste) executes?

1084


what is C++ objects?

1185


What is the difference between C and CPP?

1154


Write a program to find the reverse Fibonacci series starting from N.

1264


If dog is a friend of boy, is boy a friend of dog?

980


What are c++ redistributables?

1030


What is the difference between passing by reference and passing a reference?

1076


What is microsoft c++ redistributable?

1094


How long will it take to learn programming?

1052


How do I run c++?

1059