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
What is meant by inheritance?
Why do we need arrays in c?
What is a dynamic array in c?
What is the difference between procedural and declarative language?
I came across some code that puts a (void) cast before each call to printf. Why?
What is the difference between printf and scanf )?
What is the explanation for the dangling pointer in c?
How does placing some code lines between the comment symbol help in debugging the code?
Differentiate between calloc and malloc.
Why do some versions of toupper act strangely if given an upper-case letter?
my project name is adulteration of chille powder.how can i explain it to the hr when he asks me about the project?
What is a program flowchart?
stripos — Find position of first occurrence of a case- insensitive string int stripos ( char* haystack, char* needle, int offset ) Returns the numeric position of the first occurrence of needle in the haystack string. Note that the needle may be a string of one or more characters. If needle is not found, stripos() will return -1. The function should not make use of any C library function calls.
What is the use of getchar() function?
In C, What is the #line used for?