Guys, I have a midterm examination tomorrow, and I was looking over the sample paper, and I'm not sure about this question. Any help would be appreciated.
Let v
be a vector<Thingie*>
, so that each element v[i]
contains a pointer to a Thingie
. If p
is a vector<Thingie*>::iterator
, answer the following questions:
- what type is
p
? - what type is
*p
? - what code provides the address of the actual
Thingie
? - what code provides the actual
Thingie
?