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
write a program to copy the string using switch case?
Explain a pre-processor and its advantages.
Why c is a mother language?
Explain the concept and use of type void.
How many types of functions are there in c?
What is the difference between ++a and a++?
What is extern storage class in c?
What are the different file extensions involved when programming in C?
How can I remove the trailing spaces from a string?
Explain modulus operator. What are the restrictions of a modulus operator?
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.
How can I do graphics in c?
What is a pointer on a pointer in c programming language?
What are register variables in c?
How can you access memory located at a certain address?