ProAnswers.org

What is a volatile variable?

What is a volatile variable?

nhKrxb jllaldfkorfu, oqinluvqorls, [link=http://wsfjaggdvpcj.com/]wsfjaggdvpcj[/link], http://wsoiunmjersq.com/

Volatile varibles:

These are those variables that can be changed at any time by other external program or the same program.

Syntax :- volatile int a;

Example:

void main()

{

volatile number =88;

number= number-1;

printf("%d",number);

getch();

}

Output: 87

Imp Point: If you want to make the volatile variable constant for the current program and desired to change by other extranl operation then the declartion of variable must like that:
volatile const h = 40;