any function have arguments one or more OR not . it is compulsary
a) any function compulsary have one or more arguments
b) any function did not have arguments. It is not compulsary
c) it is optional it is not compulsary
d) none of the above
1100
What is FIFO?
1654
Write a code to achieve inter processor communication (mutual exclusion implementation pseudo code)?
1108
Explain the properties of union. What is the size of a union variable
1173
What is the purpose of macro in C language?
1101
Can we change the value of #define in c?
983
What is the use of #define preprocessor in c?
1054
Write a C Program That Will Count The Number Of Even And Odd Integers In A Set using while loop
2137
What are different types of variables in c?
1050
What is openmp in c?
1009
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 )
{
}
2655
What is the use of a ‘ ’ character?
1062
What are keywords in c with examples?
1073
What is a void pointer in c?
1090
Write a code on reverse string and its complexity.
1017