Freescale Semiconductor Interview Question: What does 'volatile' keyword ... | Glassdoor

Interview Question

Software Engineer Interview Bucharest (Romania)

What does 'volatile' keyword mean?


Interview Answer

1 Answer


Wikipedia answer:
A variable declared with the volatile keyword usually has special properties related to optimization and/or threading. Generally speaking, the volatile keyword is intended to prevent the (pseudo)compiler from applying any optimizations on the code that assume values of variables cannot change "on their own."

Interview Candidate on Nov 4, 2011

Add Answers or Comments

To comment on this, Sign In or Sign Up.