>what if I want to assign the pointer dereference to `tmp` to improve readability
I personally find code like that harder to follow. The first version is clearer than the second (and you forgot to take the address of foo->bar->baz[i]).
I personally find code like that harder to follow. The first version is clearer than the second (and you forgot to take the address of foo->bar->baz[i]).
Ha, I was afraid of that. :-) Still re-learning when I need that with arrays and when not.