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
Can someone help me on this math question pls I have 12 more questions I need help on too !
love history [14]

A is the answer. Since they will both be divided by 4 due to the same amount of points, because Globrite has a greater range, it will have a greater mean. Glo brite also ranges bigger than Luminate

5 0
3 years ago
A dilation produces a larger figure. Which is a possible scale factor? 0 Three-fourths 1 5.
laiz [17]

Answer:

5

Step-by-step explanation:

big brain and i took test

4 0
2 years ago
Read 2 more answers
Solve x:(x+4)/3=2<br> Will give points
sasho [114]

\frac{x + 4}{3}  = 2 \\  \\  \\  \text{ Multiply by 3 on both sides,  }\\  \\   \\ =  >  \frac{x + 4}{3}  \times 3 = 2 \times 3 \\  \\  \\  \\  =  > x + 4 = 6 \\ \\   \\  =  > x = 6 - 4 \\  \\  \\   =  > x = 2






Hence, value of x in the given equation is 2
8 0
3 years ago
Read 2 more answers
Two beauticians, Lydia and Jackie, are working on your hair. Lydia can complete the work in 2 hours, while Jackie can complete t
Pavlova-9 [17]

That is not correct. I just took the test and the answer is 2/3

4 0
3 years ago
Read 2 more answers
the local movie theatre collected a total of $8,250 last night, of which 45% came from sales at the concession stand. how much m
Wewaii [24]
45%=0.45

8,250x0.45
=3712.50

The theater collected $3712.50 at the concession stand.
3 0
3 years ago
Other questions:
  • There are 36 workers on a crew of electric kins and 29 of them came to work what percentage of them showed up for work
    12·1 answer
  • ‼️Anotha one. Find the volume of the prism
    7·2 answers
  • Prove that there does not exist integers m and n such that 2m+4n=7
    13·1 answer
  • A right rectangular prism has a length of 4 1/2 feet, a width of 6 1/2 feet, and a height of 8 feet What is the volume of the pr
    6·2 answers
  • Rachel, Mario and Sanjit share some money in the ratios 4:3:9
    5·1 answer
  • Ayudaaaaaaaaaaaaaaaaaaaaaaa
    5·2 answers
  • For a regular 15-sided polygon, what is the degree of rotation?
    11·1 answer
  • Gwyneth begins solving for x in the equation 2(x-4)=5(4-2x)+4x.after applying the distributive property and combining like terms
    6·1 answer
  • What is the slope of the line that passes through the points (26, 7) and (-39, 12)
    11·1 answer
  • the lengths of two sides of a triangle are 10 and 24. the third side is x how many whole number possible for x
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!