1.

What datatype should one use to represent 2147483610?(a) Int(b) Byte(c) Short(d) LongI got this question in class test.I'm obligated to ask this question of Datatypes in section Arduino Programming of Arduino

Answer»

Correct choice is (d) Long

The best I can explain: Any NUMBER can be represented in the form of a whole number or a floating-point number. If it must be represented as a whole number, then there are many OPTIONS depending upon the size of the number in question. Here the number 2146492440 should be represented USING the long datatype since it has a range of -2147483648 to -2147483647.



Discussion

No Comment Found

Related InterviewSolutions