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
1065
What is c value paradox explain?
1032
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 )
{
}
2628
What is int main () in c?
1038
What is #line in c?
972
Write a program for finding factorial of a number.
1039
What is volatile variable in c?
1059
How can I read and write comma-delimited text?
1022
What does sizeof return c?
1017
What is ## preprocessor operator in c?
1033
how many errors in c explain deply
2043
Explain how to reverse singly link list.
1087
Explain the properties of union. What is the size of a union variable
1138
Add Two Numbers Without Using the Addition Operator
778
what is associativity explain
what is the precidence for * and & , * and ++
how the folloing declaration work
1) *&p;
2) *p++;
2574