1.

From which memory does the compiler revert to if a variable is declared volatile?(a) RAM(b) Storage Register(c) ROM(d) EEPROMI had been asked this question by my school principal while I was bunking the class.The doubt is from Variable Scope and Qualifiers in division Arduino Programming of Arduino

Answer»

Right choice is (a) RAM

The best EXPLANATION: ‘volatile’ is a DIRECTIVE to the compiler. It makes the compiler load the variable from the Random-Access Memory instead of the STORAGE register. It is also called a variable qualifier. It can be USED if exactly precise values are to be stored.



Discussion

No Comment Found

Related InterviewSolutions