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 c program for swapping two strings using pointer
What are structural members?
Explain what is the difference between a free-standing and a hosted environment?
how to print electricity bill according to following charges first 100 units -1rs per unit for next 200 units-1.50 rs per unit without using conditions
When do we get logical errors?
What is the difference between procedural and functional programming?
With the help of using classes, write a program to add two numbers.
Explain what are the __date__ and __time__ preprocessor commands?
How many types of operator or there in c?
Which is the best website to learn c programming?
What is wrong with this program statement?
What would be an example of a structure analogous to structure c?
why programs in c are running with out #include
What is the stack in c?
write a program to convert a expression in polish notation(postfix) to inline(normal) something like make 723+* (2+3) x 7 (not sure) just check out its mainly printing expression in postfix form to infix.