All technical questions
1947
How are 16- and 32-bit numbers stored?
1262
What do you mean by invalid pointer arithmetic?
1027
Why is sprintf unsafe?
1024
Can variables be declared anywhere in c?
1057
What are the types of assignment statements?
1039
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 )
{
}
2644
What is a nested formula?
1086
we called a function and passed something do it we have always passed the "values" of variables to the called function. such functions calles are called
a) calls by reference
b) calls by value
c) calls by zero
d) none of the above
1120
How many types of operator or there in c?
1050
FILE *fp1,*fp2;
fp1=fopen("one","w")
fp2=fopen("one","w")
fputc('A',fp1)
fputc('B',fp2)
fclose(fp1)
fclose(fp2)}
a.error b. c. d.
1727
The process of repeatedly running a set of computer instructions until some condition is specifed
a) condition
b) sequential condition
c) global
d) iteration
1063
What is the difference between #include and #include “header file”?
1004
What is structure data type in c?
999
What is d'n in c?
1090