Q

Emertxe-News & Blog

Home » Blog » Volatile Demystified
Volatile Demystified

Volatile is a qualifier in C, which is applied to a variable when it is declared. It is used extensively while writing programs for embedded systems, especially when dealing with hardware. Most often, Volatile variable usage stumps an embedded system programmer with unexpected outputs. What makes Volatile variables different? What are its instructions to the compiler? It tells the compiler that the value of the variable may change at any time during the execution of the code without the knowledge of the compiler. If proper precautions are not taken, the desired output may not be achieved. A variable should be declared volatile whenever its value may change unexpectedly.

Written by one of our mentors, January 2015 edition of Open Source For You (OSFY) is having an article titled ‘Volatile Demystified’ got published. Here is the URL to download the complete PDF version of the article:

http://www.emertxe.com/content/osfy_jan_2015_satya_volatile.pdf

YOU MAY ALSO LIKE

Our Training Programs for Freshers

Our Training Programs for Freshers

Introduction: Emertxe is the leading training institute in Bangalore for Embedded Systems and IoT domains. It is a pioneer in training freshers since 2003 by providing excellent placement opportunities for freshers. Over the years 70000+ students have made their...

Difference between typedef and macro in C

Difference between typedef and macro in C

Introduction In any programming language, there are a set of keywords available, which can’t be used as variable name. It is because keywords are reserved and they have a special meaning. Keywords which are also called as reserved names can be anything like a command...

Emertxe and ESSCI launch Virtual Internships for Engineering students

Emertxe and ESSCI launch Virtual Internships for Engineering students

Emertxe, India’s premier embedded systems engineering finishing school, has provided more than 650+ students placements in 2019-20 alone. During 2020, amidst challenging pandemic times it continues to support students with placement opportunities and new programs via...

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *