Samsung Electronics Interview Question: what is volatile in C... | Glassdoor

Interview Question

Senior Software Engineer Interview Bengaluru (India)

what is volatile in C


Interview Answer

1 Answer


If we define a variable as Volatile then whenever we use that variable, its value will be reloaded.
eg: some variable that is in use of multiple threads, so whenever used its latest value should be loaded.

Pervez Alam on Aug 2, 2011

Add Answers or Comments

To comment on this, Sign In or Sign Up.