Question
The correct answer for the following questions are E,C,B,B. Can you explain them for me. void decision(int &, int ); int main ( ) {
The correct answer for the following questions are E,C,B,B. Can you explain them for me.
void decision(int &, int ); int main ( ) { int x = 0; int y = 3; decision(x, y); return 0; } void decision(int &a, int b) { if(a = 1) cout< 8. What does this code output? a. 123 d. 03Done b. 132 e. 1Done c. 3 Not 2 9. How many cout statements are executed? a. 3 d. 0 b. 1 e. 4 c. 2 10. The values of x and y after the function call are? a. x = 0 and y = 2 d. x = 1 and y = 2 b. x = 1 and y = 3 e. x = 0 and y = 3 c. x = 0 and y = 2 11. None of the values passed to the function change. a. True b. False
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started