how the size of an integer is decided?
- is it based on processor or compiler or OS?
Answer Posted / lanchai
Different hardware systems might have a different size for
an integer. you might get a different number in different
OS because the hardware running the OSes were different to
begin with. also, the "sizeof" command is actually a
compile-time command calculated by the compiler (see
wikipedia on sizeof)
So strictly speaking, its the hardware (or processor) that
determines the size of an integer.
Is This Answer Correct ? | 11 Yes | 2 No |
Post New Answer View All Answers
Add Two Numbers Without Using the Addition Operator
Write a program to print fibonacci series using recursion?
What is meant by type specifiers?
Which is the best website to learn c programming?
Explain a file operation in C with an example.
What are derived data types in c?
program to find error in linklist.(i.e find whether any node point wrongly to previous nodes instead of next node)
printf(), scanf() these are a) library functions b) userdefined functions c) system functions d) they are not functions
What is %g in c?
When is a null pointer used?
Give a one-line C expression to test whether a number is a power of 2. [No loops allowed - it's a simple test.]
The file stdio.h, what does it contain?
When should volatile modifier be used?
What is C language ?
What is openmp in c?