long int size
a) 4 bytes b) 2 bytes c) compiler dependent d) 8 bytes

Answer Posted / gopi nath

Yes its obsolutely depend upon the the compiler.
turbo compiler in c environment it takes 4 bytes
but in unix environment it takes 8 bytes.......

Is This Answer Correct ?    10 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What do you mean by c?

580


What does a function declared as pascal do differently?

599


Explain what header files do I need in order to define the standard library functions I use?

645


How can you increase the allowable number of simultaneously open files?

589


What are run-time errors?

594






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 ) { }

2204


How can a program be made to print the name of a source file where an error occurs?

722


Difference between strcpy() and memcpy() function?

671


What is array of structure in c?

590


Why cant I open a file by its explicit path?

589


How can you be sure that a program follows the ANSI C standard?

1120


Explain what is the difference between a string and an array?

626


What is an auto keyword in c?

636


What is the scope of an external variable in c?

563


What are local static variables? How can you use them?

637