Given the following code: int p = 5 , q=2; int f( int b, int c){ b = 2 * c; c = 3 + p; return b + c ;} print f(p,q); print p; print q;
I have found that the output values using call by value are: f(p,q)=12 p=5 q=2
And as far as i know also the output using call by reference in this example ,gives the same values.Am I right?