Skip to main content

Volatile qualifier in c

Volatile variable is a confusing term because most of people (even programmers) knows about or listened about volatile qualifier but not used that much enough. So volatile qualifier is using when there is any chance of any variable get changes during running a program and any other interruption. So here comes idea of volatile qualifier which is used to stop optimization of any variable which we do not want to get changes unexpectedly.
Here is an example of volatile qualifier:






Comments