Intel Corporation interview question

Volatile keyword

Interview Answer

Anonymous

Apr 14, 2011

prevents a variable from being optimized away, if its contents change outside of normal program execution (because of HW, threads, etc)

1