Say you have a char pointer "p" to an array of characters. Now p+1 would give you the second character and so on.
The same applies for structs. If a struct is 40 Bytes long, then structobject+1 increments by 40 bytes.
How does this applies to members of a struct?
struct MyStruct
{
int no;
int idx_x,idx_y,idx_z;
float tx,ty,tz,tw;
};
MyStruct &pData = ArrayOfMyStructs[47];
int offset = 3;
pData.no+offset; //Where is this address?
Does pData.no+offset; refer to ArrayOfMyStructs[50].no, or does it refer to ArrayOfMyStructs[47].idx_z?






