What is operator promotion?
1130
What is dynamic memory allocation?
1390
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 )
{
}
2751
The number of bytes of storage occupied by short, int and long are
a) 2, 2 and 4
b) 2, 4 and 4
c) 4, 4 and 4
d) none
1305
Why does not c have an exponentiation operator?
1119
What is function prototype?
1217
What is the difference between struct and union in C?
1387
What is the use of clrscr?
1156
will u please send me the placement papers to my
mail???????????????????
1888
What is header file in c?
1110
What is a protocol in c?
1058
What does emoji p mean?
1205
In which layer of the network datastructure format change is done
1944
What is the c value paradox and how is it explained?
1107
Write a code to generate a series where the next element is the sum of last k terms.
1292