Notice: Undefined variable: meta in /home/customer/www/ on line 1109

Deprecated: implode(): Passing glue string after array is deprecated. Swap the parameters in /home/customer/www/ on line 94
Volatile Demystified - Emertxe Custom

Emertxe-News & Blog

Home » C programming » 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:

Best Embedded systems training institute with placements in Bangalore.


The Future of Embedded Systems : Trends and Predictions

The Future of Embedded Systems : Trends and Predictions

Introduction Embedded systems have become an integral part of modern technology, and their importance is increasing day by day. These systems are designed to perform specific tasks and are embedded in everyday devices, making them intelligent and interactive. From...

Online Free IoT Internship for Engineering Students – 2023

Online Free IoT Internship for Engineering Students – 2023

The Internship Ecosystem An internship is a type of professional learning opportunity where engineering students get practical work related to their field of study or career interest. Through an internship, a student can explore and advance their career while...


Submit a Comment

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