My C++ course hasn't covered a topic yet, but I'm expected to solve a few problems with this material. I've got some working code I just don't fully understand it. Can someone help me, please?
void f(int** a) //What is this ** business? (1)
{
cout << **a; //prints the value stored in a, output is 45
cout << *a; //so what does this print? (2)
cout << &a; //confused here too (3)
}
//I'm OK with main(). I'm including it FYI
int main()
{
int i = 45;
int* ptr = &i;
f(&i);
}
I need help understanding lines (1), (2), & (3).
Thank you in advanced for your help.