- #1
PainterGuy
- 940
- 70
hello everyone,
will you help me out with some of the problems please? i will very much appreciate this kindness.
will you please have a see on this google doc:-
https://docs.google.com/viewer?a=v&...gxYzEtMzM0ZjQ4MTAzYWI1&hl=en&authkey=CJzk6IoL
please focus on highlighed parts.
to cut the long story story. in the case of "int" there are four bytes and there are 8 bits in one byte. so there are total (4 x 8) 32 bits. then if i raise 2^(32) i get 4294967296 which is equal to combined numerical range of int (2,147,483,648 + 2,147,483,647). but this formula does not work in case of "float" and double". can you tell why this is so please?
and what those digits of precision, 7 and 15, in case of "float" and "double" respectively. does this mean decimal point is followed by 7 and 15 digits respectively. tell me please.
"unsigned int" means all integers excluding -ve integers. but what are "unsigned characters"? please shed some light.
okay last question. i have seen questions asking how many bytes would be occupied by "int" and "float" on 32-bit and 16-bit system? what is this? i know you can help me here.
i am very much grateful for this help. many many thanks.
cheers
will you help me out with some of the problems please? i will very much appreciate this kindness.
will you please have a see on this google doc:-
https://docs.google.com/viewer?a=v&...gxYzEtMzM0ZjQ4MTAzYWI1&hl=en&authkey=CJzk6IoL
please focus on highlighed parts.
to cut the long story story. in the case of "int" there are four bytes and there are 8 bits in one byte. so there are total (4 x 8) 32 bits. then if i raise 2^(32) i get 4294967296 which is equal to combined numerical range of int (2,147,483,648 + 2,147,483,647). but this formula does not work in case of "float" and double". can you tell why this is so please?
and what those digits of precision, 7 and 15, in case of "float" and "double" respectively. does this mean decimal point is followed by 7 and 15 digits respectively. tell me please.
"unsigned int" means all integers excluding -ve integers. but what are "unsigned characters"? please shed some light.
okay last question. i have seen questions asking how many bytes would be occupied by "int" and "float" on 32-bit and 16-bit system? what is this? i know you can help me here.
i am very much grateful for this help. many many thanks.
cheers