What is string in c language?
1161
What is the significance of an algorithm to C programming?
1047
What is the time and space complexities of merge sort and when is it preferred over quick sort?
1084
How can I find out if there are characters available for reading?
1111
What is the difference between functions getch() and getche()?
1097
console I/O functions means
a) the I/O operations done on disk
b) the I/O operations done in all parts
c) the input given through keyboard is displayed VDU screen
d) none of the above
1179
Give me the code of in-order recursive and non-recursive.
1378
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 )
{
}
2686
If one class contains another class as a member, in what order are the two class constructors called
a) Constructor for the member class is called first
b) Constructor for the member class is called second
c) Only one of the constructors is called
d) all of the above
1066
Difference between strcpy() and memcpy() function?
1149
Is c weakly typed?
1028
hi friends how r u as soon in satyam my interview is start
but i m very confusued ta wat i do plz help me frndz wat
can i do plz tell me some question and answers related
with "C" which r asked in the interview .
2447
What are the types of unary operators?
1191
Linked list is a Linear or non linear explain if linear how
it working as a non linear data structures
2185
What is the use of function overloading in C?
1177