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 / faiz misbah

#include <stdio.h>
#include <stdlib.h>
int main ()
{
int i,j,f=0;
char a[10];
clrscr (); // only works on windows
gets(a);
for (i=0;a[i]!='\0';i++)
{
}
i--;
for (j=0;a[j]!='\0';j++,i--)
{
if (a[i]!=a[j])
{
printf("string is not palindrome");
return(0);
}
}

printf("string is palindrome");
return(0);
}

Is This Answer Correct ?    91 Yes 84 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How a new operator differs from the operator new?

1126


What are the uses of c++ in the real world?

1041


How is computer programming useful in real life?

1071


What is this pointer in c++?

1409


which of the following is not an secondary constant a) array b) real c) union

1806


Define macro.

1096


What are the restrictions apply to constructors and destructors?

1083


What are the advantages of early binding?

1075


Are there interfaces in c++?

1020


Can I uninstall microsoft c++ redistributable?

1123


Write a c program for binary addition of two 8 bit numbers.

4124


Explain the static member function.

1194


In which situation the program terminates before reaching the breakpoint set by the user at the beginning of the mainq method?

1067


Differentiate between a template class and class template in c++?

1101


Can a new be used in place of old mallocq? If yes, why?

1099