How old is our earth?
105
Give syntax for SQL and ORACLE joins.
1045
How many types of storage account azure have?
542
What are the various documents you need to become familiar with prior to the installation?
1165
Can we Co-ordinate relay in Load Break switch?
1916
Tell us about your days at Kolkata (or the place where the interview will be conducted?
1109
What Are the Operations of tMap?
5
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 to setup a svn environment for hybris projects?
5
What is an ajax request and what is a simple example of where a ajax request would be used?
854
What is html explain?
1097
What is the difference between a fill factor of 100 and 0?
924
What is turnover limit for Auditing of Service Tax, VAT,
Income Tax, Provident Fund, P. Tax and WCT? Please mail me at
gautam_ch2 @ rediffmail.com or call me at 09831707812.
3221
how to change the execute of macro
2235
What is not function?
561