1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Reil [10]
4 years ago
12

Suppose that you have the following function. void mystery(int& one, int two) { int temp temp = one; one = two; two = temp;

} What are the values of x and y after the following statements? (Assume that variables are properly declared.) x = 10; y = 15; mystery(x, y);
Mathematics
1 answer:
vlada-n [284]4 years ago
7 0

Answer:

x = 15 and y = 10

Step-by-step explanation:

It is assumed that 'x' and 'y' are declared as '10' and '15' respectively. Then following the mystery(x, y) function which is pass 10 and 15 as parameter. Then we can follow the logic of the mystery function.

First, temp is assigned to one; that is temp = 10

Secondly, one is assigned to two; that is one = 15

Thirdly, two is assigned to temp; that is two = 10.

Since x and y is same as one and two; we say:

x = one = 15  and

y = two = 10.

You might be interested in
I really need help with this math problem. Can anyone please help.
Sonja [21]
I found these
1,-1,3
-1,1,3
1,1,-3
let me know if it is correct
5 0
4 years ago
Read 2 more answers
where r is the radius of the The formula for the lateral surface area of a cylinder is S = 2pi * r * h bases and h is the height
Serjik [45]

Answer:right I was just look for the same thing when I tried to work it

Step-by-step explanation:

6 0
3 years ago
Which equation can be used to solve for x in the following diagram?
Kruka [31]

Answer:

I'm answering this for points

4 0
3 years ago
Plz help me with this.
VashaNatasha [74]

Answer:zero

Step-by-step explanation:

6 0
3 years ago
In the school election, votes were cast for sam, mary, and bill in the ratio of 4:3:2. if a total of 2178 votes were cast, how m
Gwar [14]
2178÷(4+3+2)=242
Sam's votes=242×4=968
Mary's=242×3=726
Bill's=242×2=484
6 0
3 years ago
Read 2 more answers
Other questions:
  • Look at the picture and help would be nice with explanation to if possible ​
    11·1 answer
  • what is a linear equation that is parallel to the equation y=5x-4 and passes through the point (16,-12)​
    15·2 answers
  • What is 2y+x=-6 and y=-2x+0 using substitution method?
    14·1 answer
  • What is the smallest number that is divisible by 1,2,3,4,5,6,7,8,9 and 10? How do you know? (explain) hurry pls
    10·2 answers
  • Are the following points a function;<br> (0,5), (7, 12), (8, 4), (6, 6), (12, 4), (0,4), (7, 12)
    9·2 answers
  • Solve the equation for x*<br>14 - x = 9<br>A.23<br>B. -23<br>C.5<br>D. -5​
    13·2 answers
  • CAN SOMEONE HELP????????????????????????????????????????????????????????????????????????????
    12·2 answers
  • Each face of a small cube has a surface area of 0.25 square meters. A larger cube has edges that are six times as long as the ed
    14·1 answer
  • Solve the system by graphing.<br> y= 2x+3x+1<br> y=-2x+1
    8·1 answer
  • 2+1 giveaway tell me thanks wen done​
    12·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!