5. What is the output of the following C++ code? void myFunction (int x, int& y) { int z = x; x = y; y = z; } int main() { int a = 45, b = 35; myFunction(a - b, b); cout << "a = " << a << " b = " << b << "\n"; } a. a = 45 b = 35 b. 45 35 c. a = 45 b = 10 d. a = 35 b = 45
Added by Daniela F.
Close
Step 1
We start with the main function where we have two variables a=45 and b=35. Show more…
Show all steps
Your feedback will help us improve your experience
Adi S and 98 other AP CS educators are ready to help you.
Ask a new question
Labs
Want to see this concept in action?
Explore this concept interactively to see how it behaves as you change inputs.
Key Concepts
Recommended Videos
Adi S.
Questions all refer the following graph of position of an object versus time Consider velocity and acceleration to be positive the same direction that is positive. (1pt. ) Find the averge velocity between the points on the graph labeled aud E. (Remember t0 include units!) 9. (1 pL.) Find the anstantanEous velocity the point labeled (1pC What i5 the instantaneous acceleration at the point O the graph Iaheled A? Pasitive Vegative Zero Impossible to tell (1 pL) What is the instAntaneous acceleration at the point Ou the gmph laheled D:
Madhur L.
Recommended Textbooks
Computer Science and Information Technology
Introduction to Programming Using Python
Computer Science - An Overview
Transcript
18,000,000+
Students on Numerade
Trusted by students at 8,000+ universities
Watch the video solution with this free unlock.
EMAIL
PASSWORD