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 / nithya

#include<stdio.h>
#include<string.h>
main()
{
char str1[35];
char str2[35];
clrscr();
printf("Enter the string of words to check for
Palindrome or Not");
scanf("%s",&str1);
strcpy(str2,str1);
strrev(str2);
if(strcmp(str1,str2)==0)
printf("The entered string of words %s are
palindrome",str1);
else
printf("The entered string of words %s are not
palindrome",str1);
getch();
}

Is This Answer Correct ?    3 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which is not an ANSII C++ function a) sin() b) tmpnam() c) kbhit()

1537


Is c++ the hardest language?

989


What is a binary file? List the merits and demerits of the binary file usagein C++.

1308


What is a wchar_t in c++?

1145


How many ways can a variable be initialized into in C++?

1026


What is srand c++?

1114


What c++ library is string in?

1060


How to defines the function in c++?

1139


Should I learn c or c++ or c#?

1010


What are proxy objects in c++?

1188


What is Destructor in C++?

1194


What is a virtual destructor? Explain the use of it?

992


Implement stack operations with pointers with appropriate exception checks.

981


What is general format for a prototype?

1042


What is #include cstdlib in c++?

1188