If you wanted to increment the array index to next contiguous element and then the dereference the pointer in the array in one fail swoop. This might work donât know for sure, I donât have a complier on me, but the order of it seems logical.
If Ptr is the array variable name (which by default contains the address of the first element) given to your array of structs.
(*(Ptr++)).last_name // should evaluate address of pointer array increment it to the next contiguous element, then dereference the pointer stored inside with '*' and select the member last_name with dot operator. If thats more along the lines of what your referring to.
|