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...

Find string palindrome 10marks

Answer Posted / vivek

bool
IsPalindrome( char *lpStr )
{
int n,i;
n = strlen( lpStr );
for ( i = 0; i < n/2; i++ )
{
if ( lpStr[i] != lpStr[n-i-1] )
{
return FALSE;
}
}
return TRUE;
}

Is This Answer Correct ?    5 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

main() { printf("hello"); fork(); }

1194


Where does the name "C" come from, anyway?

1166


What's the right way to use errno?

1142


How main function is called in c?

1123


What is the difference between single charater constant and string constant?

1091


What is a example of a variable?

1015


Why shouldn’t I start variable names with underscores?

1065


How can my program discover the complete pathname to the executable from which it was invoked?

1074


What is the difference between text and binary modes?

1195


Which one to choose from 'initialization lists' or 'assignment', for the use in the constructor?

1086


How to declare a variable?

1003


What does c value mean?

1192


How can you draw circles in C?

1156


What is a substring in c?

1034


What is storage class?

1073