What is the output of this given program?
#include iostream
void fun(int &x)
{
x = 6;
}
int main()
{
int x = 16;
fun(x);
cout "New value of x is " x;
return 0;
}



Posted on by