What do you know about the use of bit field?
1052
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 )
{
}
2693
What is pointer & why it is used?
1128
What is atoi and atof in c?
1090
Tell me what is null pointer in c?
1091
What are the advantages of Macro over function?
2034
a single linked list consists of nodes a to z .print the
nodes in reverse order from z to a using recursion
2787
What are dangling pointers? How are dangling pointers different from memory leaks?
1330
What kind of structure is a house?
1049
what is the difference between north western polytechnique university and your applied colleges??
please give ur answers for this. :)
2419
What is bash c?
1019
what is the syallabus of computer science students in group-
1?
2327
Is linux written in c?
1046
A routine usually part of the operation system that loads a program into memory prior to execution
a) linker
b) loader
c) preprocessor
d) compiler
1109
what is uses of .net
1742