If I have a struct array e.g. MyStruct[] that I access like MyStruct[2]
how can I take MyStruct[2] and put it into a variable maintaing the reference (not copying it)
so that instead of writing.
MyStruct[2].abc = 1;
MyStruct[2].def = 2;
I could write:
st = MyStruct[2]; // <------ does this copy or is it a reference?
st.abc = 1;
st.abc = 2;
also, how do you make a constructor to initialize a struct?
and also, if a struct contains a string - then it is intiialized - what does that mean? all zero’s out? like booleans are false, strings are “” ? numbers are 0?