The purpose of volatile is to force an implementation to suppress optimization that could otherwise occur. For example, for a machine with memory-mapped input/output, a pointer to a device register might be declared as a pointer to volatile, in order to prevent the compiler from removing apparently redundant references through the pointer.
volatile 설명이 이게 다노..? 예제 어디갓냐 이기야
*((volatile int*)0x12345678) 은 되고 *((int*)0x12345678) 는 안될거임 아마
그건 또 왜 그런거임 ㅈㄴ 얼척이 없네
신기하노...
생각해보면 volatile 자세하게 설명한 책은 못본거 같노...
근데 그래도 저건 선넘었지