Possible Duplicate:
What is the use of volatile keyword?
Why to use volatile
keyword in c++? what is the proper use of it?
As per definition
The volatile keyword is a type qualifier used to declare that an object can be modified in the program by something such as the operating system, the hardware, or a concurrently executing thread.
and in examples it decalred for e.g.
volatile bool Isrunning;
Isrunning=true;
and people use it for e.g.
if(Isrunning)
{
//some code here....
}
and at the end
Isrunning=false;
So my question is how it is diferent from bool Isrunning;
Thanks in advance. Dew