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

#include<stdio.h>
#include<conio.h>

main()
{

char s1[10],s2[10];
int m,i,j;
scanf("%s",s1);
strcpy(s2,s1);
m=strlen(s1);
for(i=0,j=m-1;i<=m-1,j<=0;i++,j--)
{
if(s1[i]!=s2[j])
printf("STRING IS NOT PALINDROME ");
}
printf("STRING IS a PALINDROME ");
getch();
}

Is This Answer Correct ?    0 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the different types of polymorphism in c++?

1061


Is c++ a dying language?

1098


List the advantages of inheritance.

1057


What are its advantages and disadvantages of multiple inheritances (virtual inheritance)?

1139


Is java easier than c++?

950


What is the use of this pointer in c++?

965


How many types of scopes are there in c++?

1034


What is an inclusion guard?

1108


Which is not a valid keyword a) public b) protected c) guarded

1190


Declare a class vehicle and make it an abstract data type.

916


What are the various storage classes in C++?

1085


What do you mean by funtion prototype?

1000


What are built-in functions? What is the syntax for the definition?

1026


Write a function to find the nth item from the end of a linked list in a single pass.

919


What is the use of 'using' declaration in c++?

1090