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
Write a program to print numbers from 1 to 100 without using loop in c?
What is New modifiers?
Write a code on reverse string and its complexity.
Explain what are bus errors, memory faults, and core dumps?
how should functions be apportioned among source files?
How can I read a binary data file properly?
what is the function of pragma directive in c?
What is the use of c language in real life?
How can I run c program?
What is the purpose of main( ) in c language?
When was c language developed?
How do you sort filenames in a directory?
i want to switch my career from quailty assurance engineering to development kindly guide me from which programming language its better for me to start plz refer some courses or certifications too i have an experience of 1.5 yrs in QA field.Kindly guide me
Is there a built-in function in C that can be used for sorting data?
What the different types of arrays in c?