[CLO-6] Given the following function definition: int fun (int &x) { for (int i=1; x<30; i++) x += pow(2, i); return x/2;
Posted: Sun May 15, 2022 1:35 pm
[CLO-6] Given the following function definition: int fun (int &x) { for (int i=1; x<30; i++) x += pow(2, i); return x/2; } What is the exact output of the following code segment? int b=5; int a=fun(b); cout<<a<<" "<<b;