4 ms·
It's a bit more subtle than that; variables aren't volatile, objects are volatile. A volatile pointer is a hint to the compiler that the object pointed to migh
by aidenn0 4y ago
It's a bit more subtle than that; variables aren't volatile, objects are volatile. A volatile pointer is a hint to the compiler that the object pointed to might be volatile. If it can't disprove that "might" into "definitely not" then it treats it as volatile.