What is a memory leak? How to avoid it?
1422
What does the error message "DGROUP exceeds 64K" mean?
1274
What are the primitive data types in c?
1131
How do I read the arrow keys? What about function keys?
1145
What is the use of static variable in c?
1142
Explain what is wrong in this statement?
1178
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 )
{
}
2746
hello freinds next week my interview in reliance,nybody has
an idea about it intervew questions..so tell
2222
#include
#include
struct stu
{
int i;
char j;
};
union uni
{
int i;
char j;
};
void main()
{
int j,k;
clrscr();
struct stu s;
j=sizeof(s);
printf("%d",j);
union uni u;
k=sizeof(u);
printf("%d",k);
getch();
}
what is value of j and k.
6391
How can I send mail from within a c program?
1076
please explain every phase in the "SDLC" in the dotnet.
2667
Why do we use int main?
1142
Why is C language being considered a middle level language?
1206
any limit on the number of functions that might be present in a C program
a) max 35 functions
b) max 50 functions
c) no limit
d) none of the above
1099
What is adt in c programming?
1225