Programming: C++

Round 1: Investment Bank Quantitative Research

Question 1: In the following function header: const int foo(const Bar & b) const; , what is each const for?

Question 2: Is there a way to avoid or circumvent the behaviour of the last const above?

Question 3: In the following statement: const char * const p = q;, what is each const for?