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
The area of the triangle below is 3/40
zubka84 [21]

Answer:

b = 3/4

Step-by-step explanation:

The area of a triangle is given by

A = 1/2 bh

3/ 40 = 1/2 b ( 1/5)

Multiply

3/40 = 1/10 b

Multiply each side by 10

10 *3/40 = 10* 1/10 b

3/4 = b

3 0
2 years ago
What is mZ1?<br> 490<br> 470<br> m21
zalisa [80]

490

Step-by-step explanation:

4333333

67

8

6 0
3 years ago
If a country's debt-to-GDP ratio is currently 5% and its debt is expected to
Valentin [98]
400 billion dollars
6 0
3 years ago
Read 2 more answers
Make r the subject of the formula <br><img src="https://tex.z-dn.net/?f=v%20%3D%20%5Cpi%20%5C%3A%20h%20%7B%7D%5E%7B2%7D%28r%20-%
Vaselesa [24]

Answer:

\boxed{r =  \frac{h}{3}  +  \frac{v}{\pi {h}^{2} } }

Step-by-step explanation:

Solve \:  for \:  r:  \\  =  >   v= \pi {h}^{2}(r -  \frac{h}{3}  ) \\  \\  v=\pi {h}^{2}(r -  \frac{h}{3}  )is \:  equivalent  \: to   \:   {h}^{2}\pi(r -  \frac{h}{3}  ) = v: \\  =  >  {h}^{2}\pi(r -  \frac{h}{3}  ) = v \\  \\ Divide  \: both \:  sides  \: by  \: \pi  {h}^{2} :  \\  =  > r -  \frac{h}{3}  =  \frac{v}{\pi {h}^{2} }  \\  \\ Add \:   \frac{h}{3}  \:  to  \: both \:  sides:  \\  =  > r =  \frac{h}{3}  +  \frac{v}{\pi {h}^{2} }

8 0
3 years ago
You need a ladder that will reach up to 25 foot tall house when places 10 feet away from the house.How tall does the ladder need
Cloud [144]
The house wall, the ground and the ladder form a right triangle, where the ladder is the hypotenuse.
Ladder = sqrt (25^2+10^2) =5sqrt(29)
4 0
3 years ago
Read 2 more answers
Other questions:
  • Pamela deposited $30 in a savings account earning 5% interest, compounded annually.
    12·1 answer
  • *The sum of two numbers is 400. If the first number is decreased by 20% and the second number is decreased by 15%, then the sum
    9·2 answers
  • Write the form of the partial fraction decomposition of the rational expression. Do not solve for the constants. 37 x2 − 6x
    11·1 answer
  • If -11 + N = -11, then N is the _____.
    8·2 answers
  • Rosetta drove her car 160 miles in 2 hours. Which of the following correctly expresses her rate as a ratio?
    9·2 answers
  • Which inequality is graphed on the number line?
    7·2 answers
  • Explain the connection between Đ2 and ĐB.<br> 654<br> 50<br> 659
    10·1 answer
  • Equação de 1°grau resultado-2x+3=-1+x+2​
    8·1 answer
  • What is the value of x in the equation 3(2x + 8) = 0? Group of answer choices −8 −4 4 8 please hurry!
    6·1 answer
  • A pet shelter 42 kittens for adoption at the beginning of the week by the end of the week there were 21 kittens left find the pe
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!