Why is volatile needed in C?

前端 未结 18 2218
攒了一身酷
攒了一身酷 2020-11-22 04:07

Why is volatile needed in C? What is it used for? What will it do?

18条回答
  •  悲哀的现实
    2020-11-22 04:48

    it does not allows compiler to automatic changing values of variables. a volatile variable is for dynamic use.

提交回复
热议问题