question about data types

I gave a test and i made some mistakes.
Please tell me which one is true and false and why ??
short m=655534;

unsigned short m=65534;

unsigned float n=6.1256594;

double o=6.12565594;
What are the questions these are answers for? With the information you have provided, I could say "they are all true because they are all non-zero." But my guess is they are supposed to be the maximum value you can have for each variable type before it "loops around"...? If that is so, then you shouldn't have much trouble looking this up yourself.
But my guess is they are supposed to be the maximum value you can have for each variable type before it "loops around"...?
I doubt it. First, that question cannot be answered because the size of the types was not given. Second, 6.1256594 is not the limit for double.

How about you tell us what the question is, and we can tell you the answer?

(If that is the question, then I agree with Zhuge. They are all true.)
There is no such thing as an unsigned float.
Topic archived. No new replies allowed.