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

Answers were Sorted based on User's Feedback



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

Answer / guest

Compiler Dependent

Is This Answer Correct ?    112 Yes 18 No

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

Answer / guest

integer sizes always depend compiler which are specific to
different processor platforms.

Is This Answer Correct ?    34 Yes 5 No

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

Answer / asis kumar mohanty

it is compiler and environment dependent.
turbo compiler under c environment takes 4 bytes for
longint.
turbo compiler under unix environment takes 8 bytes.

Is This Answer Correct ?    22 Yes 9 No

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

Answer / raja kumar

yes, i too agree it is compiler dependent. But, can anyone
explain, why it is compiler dependent?

If it is a 16 bit compiler, then the size of int is 2
bytes. If it is a 32 bit compiler, then the size of int is
4 bytes. Is there is any reason behind this? It will be
helpful if anyone clarifies this?

Is This Answer Correct ?    15 Yes 3 No

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

Answer / jitender mahender

long int occupies 4 bytes in memory.

Is This Answer Correct ?    38 Yes 27 No

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

Answer / kamal

compiler dependent

Is This Answer Correct ?    14 Yes 3 No

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

Answer / shruti

yes its compiler dependant..
these are figures with respect to only one compiler..
it may change for others.

but it genrally takes 6 bytes space..

float 4 bytes..
double 8 bytes..

Is This Answer Correct ?    17 Yes 7 No

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

Answer / vinnothkumar

its compiler dependent

Is This Answer Correct ?    15 Yes 5 No

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

Answer / 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

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

Answer / dhiraj

Its always complier depended and the reason for this is
that int is always map to the word size of that processor.

Is This Answer Correct ?    5 Yes 2 No

Post New Answer

More C Interview Questions

what is dangling pointer?

1 Answers   LG Soft,


implement NAND gate logic in C code without using any bitwise operatior.

4 Answers   Alcatel,


How to print %d in output

6 Answers   Wipro,


Can a local variable be volatile in c?

0 Answers  


How can I return multiple values from a function?

6 Answers  


Write a C program to read the internal test marks of 25 students in a class and show the number of students who have scored more than 50% in the test. Make necessary assumptions.

1 Answers  


What is the difference between declaring a variable by constant keyword and #define ing that variable?

1 Answers  


Find the second largest element in an array with minimum no of comparisons and give the minimum no of comparisons needed on an array of size N to do the same.

0 Answers   Amazon,


Do pointers take up memory?

0 Answers  


a linearly ordered set of data elements that have the same structure and whose order is preserved in storage by using sequential allocation a) circular b) ordinary c) array d) linear list

0 Answers  


Does free set pointer to null?

0 Answers  


What are the advantages and disadvantages of a heap?

0 Answers  


Categories