Sorry, I am not sure I get your question but since element is a struct, even if accessing its members works like an array, age and name will just be at a contiguous addresses. in my case, I have: So accessing those members of element will just work like a normal struct.