I need testPalindrome and removeSpace
#include
#define SIZE 256
/* function prototype */
/* test if the chars in the range of [left, right] of array
is a palindrome */
int testPalindrome( char array[], int left, int right );
/* remove the space in the src array and copy it over to the
"copy" array */
/* set the number of chars in the "copy" array to the
location that cnt points t */
void removeSpace(char src[], char copy[], int *cnt);
int main( void )
{
char c; /* temporarily holds keyboard input */
char string[ SIZE ]; /* original string */
char copy[ SIZE ]; /* copy of string without spaces */
int count = 0; /* length of string */
int copyCount; /* length of copy */
printf( "Enter a sentence:\n" );
/* get sentence to test from user */
while ( ( c = getchar() ) != '\n' && count < SIZE ) {
string[ count++ ] = c;
} /* end while */
string[ count ] = '\0'; /* terminate string */
/* make a copy of string without spaces */
removeSpace(string, copy, ©Count);
/* print whether or not the sentence is a palindrome */
if ( testPalindrome( copy, 0, copyCount - 1 ) ) {
printf( "\"%s\" is a palindrome\n", string );
} /* end if */
else {
printf( "\"%s\" is not a palindrome\n", string );
} /* end else */
return 0; /* indicate successful termination */
} /* end main */
void removeSpace(char src[], char copy[], int *cnt)
{
}
int testPalindrome( char array[], int left, int right )
{
}
2687
Does microstrategy intelligence server support scheduling?
1050
Explain about the Optimizer values passed in Oracle?
2923
How does AI help in fraud detection?
107
How you will make available any message resources definitions file to the struts framework environment?
980
Explain the use of NLP in legal research.
67
Can some body help to write possible test cases for a
credit card at POS (point of sale)
2845
Why is naive bayes so naive?
95
Is error function excel?
728
Name the commands used to pause and un-pause(resume) an instance?
272
What is actioncontext?
959
What is the significance of keys in react?
553
If an object is garbage collected, can it become reachable again?
1011
Evaluate !(1&&1||1&&0)
a) Error
b) False
c) True
1210
Dear Sir,
I got 90kilowat and 3 face for my house.So which cable is the best for my
home main line.
Thanks
Bashir Ahmed
e-mail: bcon.ba.bd@gmail.com
2732