Is the order of writes to separate members of a volatile struct guaraneed to be preserved?

前端 未结 0 931
野的像风
野的像风 2020-12-15 03:27

Suppose I have a struct like this

volatile struct { int foo; int bar; } data;
data.foo=1; 
data.bar=2;
data.foo=3;
data.bar=4;

Are the assign

相关标签:
回答
  • 消灭零回复
提交回复
热议问题