Define CASA.
1049
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 )
{
}
2622
How will you use jsp el in order to get the http method name?
968
Who is the best hacker in the world?
868
What is the difference between file_get_contents() and file_put_contents() in php?
1116
Can you share a specific case where you used lean techniques to reduce waste and increase value in a manufacturing process?
1
How did you decide on a particular level of service?
1080
Which standard binding could be used for a service that was designed to replace an existing asmx web service?
710
Do the discovery methods produce data that informs or serves to improve the policy, management, or operational aspects of the program?
784
Can you create an index on an array field in mongodb? If yes, what happens in this case?
5
What is a closing head tag?
803
You are the project manager for a construction company that is building a new city and county office building in your city. You recently looked over the construction site to determine if the work to date was conforming to the requirements and quality standards. Which tool and technique of Quality Control are you using?
A. Performance measurements
B. Inspection
C. Sampling
D. Prevention
874
What do you understand by 'humanoid robot'?
929
How to connect to a remote database using Applet?
2484
how to clculate the %of concrete strenght achive after
curing?load
2379