where is the y intercept for y = sin x?
1094
What are various procedures for counting physical inventory?
1194
How to strip whitespace (or other characters) from the beginning and end of a string?
886
What do you mean by a replica set in mongodb?
1
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
How can I update my windows 8.1 to windows 10?
779
Define testing temperature?
1
What are the basic advantages of jms?
866
What is a network?
432
What is hooks in drupal and list few hooks used in your project?
116
Explain macro in ms-excel.
720
What does rand () do in excel?
600
How can i start buying a share.
How can i find dealers.
Can any one give me just an idea about this.
When to buy ? How to buy? where to Buy ? How can i sell it ?
How i came to know it is right time to sell . so that i can
gain money ?
Advance thanks
2069
How to connect postgresql database using pgadmin 4?
839
What is the index?
996