1.

Can the PROGMEM Utility work on non-static variables?(a) Yes(b) NoI had been asked this question by my school teacher while I was bunking the class.My enquiry is from PROGMEM Utility in section Arduino Programming of Arduino

Answer»

The CORRECT choice is (a) Yes

To explain: The PROGMEM Utility can be USED with non-static variables provided they are defined outside any function, i.e. they are defined GLOBALLY. Conversely if one needs to WORK on a variable that is not defined globally then they would NEED to convert that variable into a static variable in order to use the PROGMEM Utility.



Discussion

No Comment Found

Related InterviewSolutions