1.

How many bits of memory does the bool datatype occupy?(a) 2(b) 4(c) 6(d) 8This question was posed to me by my college professor while I was bunking the class.I'd like to ask this question from Datatypes topic in portion Arduino Programming of Arduino

Answer»

Correct OPTION is (d) 8

To explain: The bool datatype can only take 2 values; TRUE or FALSE. This takes a space of 8 bits or 1 BYTE. It’s mostly used in digital read or write operations to denote a 0V or 5V signal output or input. It can also be used for DECISION making.



Discussion

No Comment Found

Related InterviewSolutions