[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;
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
[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;
[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;
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!