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
Solve for x. x3=8125 Enter your answer in the box as a fraction in simplest form. x =
drek231 [11]
The exact form of that is x=5 cube root of 65
4 0
3 years ago
Read 2 more answers
Select the correct answer.
vovikov84 [41]
(Remember, PEMDAS)
First find what 5^2 equal to
5 • 5 = 25
Then add 25 to 3
25 + 3 = 28
So Oc. :)
7 0
3 years ago
Helppppppp pleasssseeeeee
Svet_ta [14]
14mi-5\frac{7}{10}mi=[(14-5)-\frac{7}{10}]mi=(9-\frac{7}{10})mi=(8+1-\frac{7}{10})mi\\\\=(8+\frac{10}{10}-\frac{7}{10})mi=(8+\frac{10-7}{10})mi=(8+\frac{3}{10})mi=\boxed{8\frac{3}{10}mi}\\\\other\ method\\\\14mi-5\frac{7}{10}mi=14mi-5.7mi=(14-5-0.7)mi\\\\=(9-0.7)mi=\boxed{8.3mi}
6 0
3 years ago
4+3(2r+2s)+3r<br><br> Simplify this expression
Ipatiy [6.2K]
Hello!

First you can distribute the 3

4 + 6r + 6s + 3r

Then you combine like terms

4 + 9r + 6s

The answer is 9r + 6s + 4

Hope this helps!
3 0
3 years ago
Which of the following equations is equivalent to the equation 6x-y=1
kondaur [170]
A. 6x-y=1 can go to 6x-y-1=0 and then 6x-1 = y 
3 0
3 years ago
Read 2 more answers
Other questions:
  • A cellphone rental business borrows $1,500 to expand the business to a neighboring town. The owner has to make equal monthly pay
    15·1 answer
  • What is the correct meaning of the word yield?<br> Hehehe
    12·1 answer
  • HELLO THERE. PLS HELP ME WITH GEOMETRY
    11·1 answer
  • Please help me with these math questions :)<br><br> questions 1-5 in order
    13·1 answer
  • What is 7/9 ÷ 1/3 plz help ​
    11·2 answers
  • Find the area of the shaded region. Round your answer to the nearest tenths.
    15·1 answer
  • Please help marking the smartest answer
    5·1 answer
  • What is the length of PR<br><br><br><br> MARKING BRAINLIST
    5·2 answers
  • Tessa bought stock in a restaurant for $246.00 Her stock is now worth $297 66 What is the percentage increase of the value of Te
    9·1 answer
  • So,some please help me with this question !
    11·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!