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 we say that the larvae of the lady bugs will eat approximately 500 fleas per day
levacccp [35]
Well sure, go w that and see what you get
4 0
3 years ago
X+y=2 2x^2+xy+1 Plz answer
iren2701 [21]

Answer:

answer is y^2-6y+9

Step-by-step explanation:

first take out the value of x from equation 1 which is x=(2-y)

then put the value of x in equation 2 u will get ur answer as y^2-6y+9

6 0
3 years ago
8.7 _____ 8.5<br> &gt;<br> &lt;<br> =<br> which one this is a quiz for you!
bogdanovich [222]

Answer:

>

Step-by-step explanation:

7 0
3 years ago
Please help me thank you if u do
astra-53 [7]

Answer:

Step-by-step explanation:

1/2 * ( 9 * 6 * 10)

1/2 * 540

270 in^{2}

7 0
3 years ago
Four more than twice a number is -10.
Vadim26 [7]

Answer:

4 + ( -7 X 2 ) = -10

Step-by-step explanation:

Check work:

-7 times 2 is -14.

4 + -14 = -10

5 0
3 years ago
Read 2 more answers
Other questions:
  • Round 490,618 to the nearest hundred
    13·2 answers
  • How to solve? Sarah has a $100 she gave 3/4 of the money to her sister. She gave a 1/2 of the rest of the money to her friend. H
    13·1 answer
  • I have 4 times the homework than my brother. I have 9 more sheets than him. How many sheets of homework do we have altogether?
    15·1 answer
  • Suppose there are 20 questions on a multiple choice test.if 25%of the answers are choice B how many of the answers are not choic
    11·2 answers
  • Factor finder for 42
    6·1 answer
  • Please help me due tomorrow
    6·2 answers
  • Please help. TIMED! (15 pts)<br> Use the following data to calculate the curve of the best-fit.
    8·2 answers
  • Graph y=2/5x+7 plzz help
    12·2 answers
  • Molly has 10 pencils in her backpack. 4 of those pencils are red. What is the percent of pencils that are NOT red?
    8·2 answers
  • What are the zeros of the polynomial function? f(x)=x2−4x−60 Enter your answers in the boxes. The zeros of f(x) are and.
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!