long int size
a) 4 bytes b) 2 bytes c) compiler dependent d) 8 bytes
Answers were Sorted based on User's Feedback
Answer / guest
integer sizes always depend compiler which are specific to
different processor platforms.
| Is This Answer Correct ? | 34 Yes | 5 No |
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 |
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 |
Answer / jitender mahender
long int occupies 4 bytes in memory.
| Is This Answer Correct ? | 38 Yes | 27 No |
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 |
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 |
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 |
How do you write a program which produces its own source code as its output?
what is array?
how write a addtion of two single dimensional array using of pointer in c language?
Write a program to use switch statement.
0 Answers Agilent, Integreon, ZS Associates,
The difference between printf and fprintf is ?
Explain logical errors? Compare with syntax errors.
what will be the output off the following program? #include<stdio.h> int main() { int a; a=015+0*71+5; printf("%d,a"); return0; }
how many types of operators are include in c language a) 4 b) 6 c) 8 d) 12
What is the stack in c?
If 4 digits number is input through the keyboard, Write a program to calculate sum of its 1st & 4th digit.
1.)how to find d most repeated word in a string? string ="how do you do"?? output should be do
1 Answers AAS, Nagarro, Vuram,
Why is structure padding done in c?