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]
3 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]3 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
Help me answer this thanks
Doss [256]

Answer:

c = 15 meters

Step-by-step explanation:

This is solveable using the Pythagorean Theorem,

let's say a = 9 and b = 12,

a^2 + b^2 = c^2, so

9^2 + 12^2 = 225 then,

sqrt(225) = 15, so c = 15 m

7 0
3 years ago
Read 2 more answers
Given m||n, find the value of x.
umka21 [38]
The answer is x = 24 :)

8 0
2 years ago
1.What value goes in the blank to make this a proportion:
iragen [17]
1. 24
2. 56
3. 15
4. 60
Hopefully this helps!
4 0
2 years ago
There are 7 green apples and 6 red apples in a basket
oee [108]
Red apples to all apples:

There are 6 red apples and 13 apples total, so the ratio it 6:13

Green Apples to All Apples:

There are 7 green apples and 13 apples total, so the ratio is 7:13.
8 0
3 years ago
A group of friends recorded how fast tthey could run a 100 meters
Maru [420]

Answer:

58.4

Step-by-step explanation:

Runner 1 ran 14.85 and Runner 2 ran 14.05 from there you need to add the two together and you get 28.90. From there you can add Runner 3 and Runner 4 time together and you get 29.50.

After that you add them together and you get 58.4

I hope this helps! Let me know if you need more help on this question.

8 0
3 years ago
Read 2 more answers
Other questions:
  • What is another way to write 0.7?
    8·1 answer
  • Twelve different video games showing drug use were observed. The duration times of drug use were​ recorded, with the times​ (sec
    7·1 answer
  • At the city museum, child admission is
    5·1 answer
  • 2. Find the common difference and the recursive formula. a. 22, 19, 16, 13, …
    14·1 answer
  • (2x + 4) — (-x + 5)<br> PLEASE HELP
    13·1 answer
  • Mrs. Miller sells a house for $179,000. If she earns a commission of 6%, how much money does she earn? Write a proportion and sh
    10·2 answers
  • Levis wants to buy cookies for his friends. The diameter of the cookie is 7 cm. What is the cookie's area?
    15·2 answers
  • Who use remind if so join with this code 2ff7fb
    7·1 answer
  • what is the slope of the line that passes thought the points (4,-6) and (-2,3)? write your answer on simplest form.​
    14·1 answer
  • Please help I don't understand!
    6·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!