In other words, say I have an array of objects Object foo[10]
And a function takes a pointer to one of them as an argument: func(&foo[0])
Should I be able to access the rest of the array inside of that function by calculating these offsets?
func(Object* a)
{
Object* a0 = a;
Object* a1 = a0 + sizeof(Object)
Object* a2 = a0 + sizeof(Object)*2
}