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 )
{
}
2646
Can I enable requests to a jdbc connection pool for a database connection to wait until a connection is available?
864
To wrap up a call to a Web service the standard used is..?
952
What is component controller?
315
tell us something about your family background?
1003
Discuss the tension between accuracy and interpretability.
57
Can we declare variable anywhere in c?
941
Will the name change be reflected in any of the existing .net framework 2.0 apis, assemblies, or namespaces?
967
Explain the advantages of using c band for satellite communication?
968
Why do we use hashset?
895
Explain Even and Odd signals?
1869
COL1,COL2
ABC,1
XYZ,2
HERE IN COL2 VALUES 1,2 NOT STSANDARD(IE MEANS NOT
FIXED VALUES LIKE OTHER SOME VALUES LIKE 10,20)
O/P IS
COL1,COL2
ABC,2
XYZ,1
1922
What are the events that happen when a client requests an asp.net page from iis server?
971
Dear Sir
I had already export to dubai. now I am to know that can I
enter this sale entry in RG1. pls guide me.
1880
I am some what lagging in talking English but i love to do
job as an software engineer what will i do to improve my
communication skills? please give me answer..........
3160