What is meant by 'bit masking'?
1334
Where are the auto variables stored?
1090
Explain about the functions strcat() and strcmp()?
990
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 )
{
}
2614
What library is sizeof in c?
1036
How do we declare variables in c?
1008
Which type of language is c?
1020
Iam a B.Tech graduate and completed my engineering in 2009,
from 2005 to 2009 and after that i had done nothing.Now i
want to do job and get into BPO field . Friends give me
suggestions as what to say in interview... if they ask me
that what would you had done ... these many years without
doing job ??????? pls urgent
1772
Explain About fork()?
1058
What oops means?
933
What is file in c language?
964
what are bit fields in c?
1599
Write the control statements in C language
1130
is it possible to create your own header files?
1046
what is the different bitween abap and abap-hr?
2217