In a structure, is it legal to use one array field to access another one?

后端 未结 9 447
忘了有多久
忘了有多久 2020-12-24 01:43

As an example, consider the following structure:

struct S {
  int a[4];
  int b[4];
} s;

Would it be legal to write s.a[6] and

9条回答
提交回复
热议问题