Array Index variables
- Your question is without context. We can't know what type element is.
- If element is (or convertible to) an int, then your code is equivalent to
int index = Struct.element; Array[index];Which is "accept"able, of course.
int index = Struct.element;
Array[index];Which is "accept"able, of course.You agree to website policy and terms of use
Can an array accept a struct element as an index
For instance Array[Struct.element];
thanks