Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Use the code below to answers the following 3 questions (). #include using namespace std; int x (int&, int); int y(int); void z (double
Use the code below to answers the following 3 questions (). #include using namespace std; int x (int&, int); int y(int); void z (double []); int main () { int a2, b-3, c=10; double r [3]= (1.2, 3.3, -0.2); a + x(++a, 1); by (c)+ 5; c = x (c, 1) + y (b); cout < < "a = " < < a < < endl; cout < < "b = " < < b < < endl; cout < < "c = " < < c < < endl; z (r); cout < < r[0] < < endl; return 0; 0 1.2 int x (int & c, int 2) { } int { b = 10 y(int QQ) if (QQ 83 == 1) return 5; else if (QQ_$5 ==0) return 0; else return 1; c++; return 2; void z (double b[]) { 39. What will be output by the final cout statement in main()? a. 3.3 d. 0.2 b. e. Cannot be determined from given code C. 40. What will be output by the first cout statement in main ()? a. a=1 b. a=5 C. a=7 d. a = 3 e. a = 2 41. What will be output by the second cout statement in main ()? a. d. b=4 b=8 b. b=5 c. b=3 C. double t; t = b[0]; b[0] = b[1]; b[1] = b[2]; b[2] =t;
Step by Step Solution
★★★★★
3.46 Rating (143 Votes )
There are 3 Steps involved in it
Step: 1
Lets go through the code provided step by step to answer the three questions First we will evaluate ...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