1.

What type of variables does the PROGMEM Utility work on?(a) Globally Defined or static(b) Defined inside a function and non-static(c) Defined inside a for-loop and non-static(d) Defined inside a while-loop and non-staticI had been asked this question in class test.The above asked question is from PROGMEM Utility in section Arduino Programming of Arduino

Answer»

Right answer is (a) Globally DEFINED or static

Explanation: The PROGMEM Utility can only be USED for variables which have “public” access to the entire program and conversely can be accessed by anyone, or is a static VARIABLE, which means they NEED to be defined outside a function and be static or non-static, or if they are defined WITHIN any function, they need to be static.



Discussion

No Comment Found

Related InterviewSolutions