1.

How many types of macros are there?(a) 1(b) 2(c) 3(d) 4The question was posed to me in my homework.My query is from Preprocessing in portion Arduino Programming of Arduino

Answer»

Correct answer is (b) 2

To explain: A MACRO is a constant VARIABLE that gets initialized in a PROGRAM here with the help of a preprocessor. There are two types of macros, namely object type macros and function type macros. An object type macro is one which is simply a variable NAME with a VALUE attached to it while a function type macro is one which is of the form of expression.



Discussion

No Comment Found

Related InterviewSolutions