1.

How many bits of memory does the Short datatype take up?(a) 17(b) 15(c) 16(d) 14I had been asked this question by my school principal while I was bunking the class.This key question is from Datatypes in portion Arduino Programming of Arduino

Answer»

Right choice is (c) 16

To 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 short datatype takes up 16 bits of MEMORY. In other words, it can store NUMBERS between -32768 to 32767.



Discussion

No Comment Found

Related InterviewSolutions