• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 253
  • Last Modified:

Volatile variable

Hi friends,
           please explain what's the use in declaring a
volatile variable as constant.
Thanxs in advance.
0
mala082398
Asked:
mala082398
1 Solution
 
JYoungmanCommented:
"volatile" indicates that the object is modified by something not directly under the compiler's control (i.e. the hardware itself, or another thread of control).   An example might be the global variable that keeps track of the total number of timer interrupts, or a hardware clock.

You should probably reject the answer I gave to the other version of this question.

0

Featured Post

The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now