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 r callback function?
void main() {int i=2; printf("%d%d%d",i,++i,i++); getch(); }
In a header file whether functions are declared or defined?
What does %p mean c?
Write a program which calculate sum of several number and input it into an array. Then, the sum of all the number in the array is calculated.
Write a program to reverse a given number in c?
What is use of #include in c?
in b=6.6/a+(2*a+(3*c)/a*d)/(2/n); which operation will be performed first a) 6.6/a b) 2*a c) 3*c d) 2/n
write a c program that prints all multiples of 3between 1 and 50.
What are the restrictions of a modulus operator?
Explain what is the difference between text files and binary files?
1,4,8,13,21,30,36,45,54,63,73,?,?.
10 Answers AMB, Franklin Templeton,