What is the output of the following code?
include iostream
void fun(int &x)
{
r = 10;
}
int main()
{
int r = 20;
fun(r);
cout "New value of r is " r;
return 0;
}


Posted on by