Can volatile variables be read multiple times between sequence points?
Reading the (ISO 9899:2018) standard literally, then it is undefined behavior. C17 5.1.2.3/2 – definition of side effects: Accessing a volatile object, modifying an object, modifying a file, or calling a function that does any of those operations are all side effects C17 6.5/2 – sequencing of operands: If a side effect on a scalar … Read more