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 is the best c++ compiler?

1170


Please explain class & object in c++?

1101


Do you know about latest advancements in C++ ?

1254


What is virtual base class?

1089


What are manipulators used for?

1104


Why do we use templates?

1071


What is abstraction in c++ with example?

1152


What is a base class?

1125


What is the iunknown interface?

1138


What are the rules about using an underscore in a c++ identifier?

1206


Can I uninstall microsoft c++ redistributable?

1127


Differentiate between late binding and early binding. What are the advantages of early binding?

1041


If a function doesn’t return a value, how do you declare the function?

1071


List the issue that the auto_ptr object handles?

1031


What is malloc in c++?

1024