- 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.

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Can an array accept a struct element as an index
For instance Array[Struct.element];
thanks