long int size
a) 4 bytes b) 2 bytes c) compiler dependent d) 8 bytes
Answers were Sorted based on User's Feedback
Answer / rohit
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 ? | 3 Yes | 1 No |
Answer / jp
The integer size is processor dependent.
In Turbo C or Borland C , we are using only the 8086
virtual mode processor. thus we get size of int as 2Byte
and thus size of long int as 4 Byte.
| Is This Answer Correct ? | 2 Yes | 2 No |
Answer / http://abhishek-technicalwork.
the ans to this question is (a) if the compiler is of 16 bit.
like c language compiler of 16 bit.
so it can be said that the size of the long int is compiler dependent..
therefore option (c) is also correct
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / darshan l.
Of course it is compiler dependent.
But the minimum size of long int must be 4 bytes(32 bits); it may be more than that also.
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / karthik
THE MAIN USE OF SHORT AND LONG IS TO USE IN COMPILER
INDEPENDENT ENVIRONMENT..
| Is This Answer Correct ? | 0 Yes | 5 No |
What is meant by type casting?
Fifty minutes ago if it was four times as many mints past 3 o clock. how many minutes is it to six o'clock n how....?????
What are c preprocessors?
swapping of two numbers without using third variable using AND and OR operators
What is the size of enum in bytes?
Write a program that takes a 3 digit number n and finds out whether the number 2^n + 1 is prime, or if it is not prime find out its factors
The % symbol has a special use in a printf statement. How would you place this character as part of the output on the screen?
write a c program to find reminder and quotient if one number is divided by other.to code this program don't use more than 2 variables
write a recursive program in'c'to find whether a given five digit number is a palindrome or not
Why does not c have an exponentiation operator?
How many types of sorting are there in c?
How to write a program for machine which is connected with server for that server automatically wants to catch the time for user of that machine?