1.

What is the use of the typeid() function?(a) To find the datatype of the variable(b) To find the “const” status of the variable(c) To find the address of the variable(d) To find the value of the variableThe question was posed to me in an online quiz.This intriguing question comes from Type Conversions in section Arduino Programming of Arduino

Answer»

The CORRECT choice is (a) To find the datatype of the variable

Explanation: The typeid() function returns the datatype of the expression or variable that is PASSED through it. It returns a constant type_info OBJECT which can be used as a STRING in further programming.



Discussion

No Comment Found

Related InterviewSolutions