Q. What is the new value of P?
Code:
#include
using namespace std;
void function(int &p)
{
p = 15;
}
int main()
{
int p = 12;
function(p);
cout << "New value of P is " << p;
return 0;
}
β
Correct Answer: (C)
New value of P is 15