how the size of an integer is decided?
- is it based on processor or compiler or OS?
Answer Posted / hrishikesh
I think it is decided by Os...
Because variables are assigned memory while the program is
in execution which is done by the OS,and the "MEMORY
MANAGEMENT" is one of the important services provided by the
OS which does the "memory allocation and De allocation".
So, what will be the amount of location needed to store an
int is OS dependent .
Thanks ....,,,,
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
What is the right type to use for boolean values in c?
What are conditional operators in C?
If jack lies on Mon, Tue Wed and jill lies on Thursday, Friday and Saturday. If both together tell they lied yesterday. So c the given options and then c cos in the given dates one will be saying the truth and one will be lying. I got Thursday as option because jack is saying the truth he lied yest but jill is lying again as he lies on that day.
why to assign a pointer to null sometimes??how can a pointer we declare get assigned with a garbage value by default???
Explain which of the following operators is incorrect and why? ( >=, <=, <>, ==)
Is javascript based on c?
What are the features of c languages?
Is it better to use a macro or a function?
the process of defining something in terms of itself is called (or) in C it is possible for the functions to call themselves. A function called a) nested function b) void function c) recursive function d) indifinite function
Given only putchar (no sprintf, itoa, etc.) write a routine putlong that prints out an unsigned long in decimal. [ I gave the obvious solution of taking % 10 and / 10, which gives us the decimal value in reverse order. This requires an array since we need to print it out in the correct order. The interviewer wasn't too pleased and asked me to give a solution which didn't need the array ].
Differentiate between the = symbol and == symbol?
How can you find the exact size of a data type in c?
Write a program to know whether the input number is an armstrong number.
What are the advantages of using macro in c language?
GIVEN A FLOATING POINT NUMBER HOW IS IT ACTUALLY STORED IN MEMORY ? CAN ANYONE EXPLAIN?? THE 32 BIT REPRESENTATION OF A FLOATING POINT NUMBER ALLOTS: 1 BIT-SIGN 8 BITS-EXPONENT 23 BITS-MANTISSA