Why is volatile needed in C? What is it used for? What will it do?
volatile
it does not allows compiler to automatic changing values of variables. a volatile variable is for dynamic use.