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

write a program to copy the string using switch case?

2914


Explain a pre-processor and its advantages.

1145


Why c is a mother language?

1047


Explain the concept and use of type void.

1120


How many types of functions are there in c?

1152


What is the difference between ++a and a++?

1225


What is extern storage class in c?

1006


What are the different file extensions involved when programming in C?

1297


How can I remove the trailing spaces from a string?

1086


Explain modulus operator. What are the restrictions of a modulus operator?

1022


Write a program to display all the prime nos from 1 to 1000000, your code should not take time more than a minute to display all the nos.

2087


How can I do graphics in c?

1040


What is a pointer on a pointer in c programming language?

1152


What are register variables in c?

1020


How can you access memory located at a certain address?

1131