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 to find string length wihtout using c function?
Write a program that an operator and two operands read from input operand operator on the implementation and results display.
Explain is it better to use a pointer to navigate an array of values, or is it better to use a subscripted array name?
What are signals in C?
how to display 2-D array elements in spiral
Why #include is used in c language?
how to add our own function in c library please give details.?
What is the benefit of using #define to declare a constant?
Identify the correct argument for the function call fflush () in ANSI C: A)stdout B)stdin C)stderr D)All the above
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 an interactive c program that will encode or decode a line of text. To encode a line of text, proceed as follows: Convert each character, including blank spaces, to its ASCII equivalent. Generate a positive random integer. Add this integer to the ASCII equivalent of each character. The same random integer will be used for the entire line of text. Suppose that N1 represents the lowest permissible value in the ASCII code, and N2 represents the highest permissible value. If the number obtained in step 2 above exceeds N2, then subtract the largest possible multiple of N2 from this number, and add the remainder to N1. Hence the encoded number will always fall between N1 and N2, and will therefore always represent some ASCII character. Display the characters that correspond to the encoded ASCII values. The procedure is reversed when decoding a line of text. Be certain, however, that the same random number is used in decoding as was used in encoding.
1 Answers Amazon, CSJM, HCL, Microsoft, TCS, Wipro,
What is data type long in c?