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
Is main a keyword in c?
Take an MxN matrice from user and then sum upper diagonal in a variable and lower diagonal in a separate variables. Print the result
count = 0; for (i = 1;i < = 10; i++);count = count + i; Value of count after execution of the above statements will be a) 0 b) 11 c) 55 d) array
How can I recover the file name given an open stream?
write a program that types this pattern: 12345678987654321 12345678 87654321 1234567 7654321 123456 654321 12345 54321 1234 4321 123 321 12 21 1 1
What is an auto variable in c?
What does main () mean in c?
What is context in c?
Do you know pointer in c?
Why doesnt that code work?
What is array of structure in c?
what is ur strangth & weekness
Write a program to check prime number in c programming?
What is a method in c?
FILE PROGRAMMING