Ask your own question, for FREE!
Computer Science 24 Online
OpenStudy (anonymous):

List four C++ integral data types? List three C++ floating point data types? What is the smallest (least memory used) C++ data type that could be used to store the value 123.456? What is the smallest (least memory used) C++ data type that could be used to store the value 1234567890.0987654321? Can someone help me solve these?? Im lost. /.\ Medal goes to whoever helps! :D

OpenStudy (anonymous):

1) char, short, int, long, long long 2) float, double, long double 3) int -> 32 Bit -> 4294967296 (short 16 Bit -> 65536 4) I think its double

OpenStudy (anonymous):

Just test if 1234567890.0987654321 fits in a double. If not then its long double

OpenStudy (anonymous):

depending on the OS the int could also have 64 Bits but that doesnt really matter

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!