Which scenes keyword “volatile” is needed to declare in objective-c?

后端 未结 3 981
无人及你
无人及你 2021-01-31 11:55

As i know, volatile is usually used to prevent unexpected compile optimization during some hardware operations. But which scenes volatile should be dec

3条回答
  •  栀梦
    栀梦 (楼主)
    2021-01-31 12:10

    volatile comes from C. Type "C language volatile" into your favourite search engine (some of the results will probably come from SO), or read a book on C programming. There are plenty of examples out there.

提交回复
热议问题