Suppose you want to run the following code, where v is a vector of ints:
for (p = v.begin(); p != v.end(); p++)
cout << *p << " ";
Which of the following are possible ways to declare p?
std::vector<int>::iterator p;
std::vector<int>::const_iterator p;