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
Last year, there were 219 pies baked for the bake sale. This year, there were d pies baked. Using d , write an expression for th
suter [353]
219 + d, since you have 219 pies baked last year and you have d baked this year. If you want to know how much pies are baked in total, then you must add the 219 pies and d to get the total number of pies baked in two years. Hoped this helped, I'm new to Brainly.
3 0
4 years ago
Read 2 more answers
3x²+6y² when x=0 and y=2<br>​
Andrej [43]

Answer:

72

Step-by-step explanation:

8 0
3 years ago
Read 2 more answers
What is the value of z?
andreyandreev [35.5K]

Answer:

122 degrees, because x and z are alternate interior angles

122 degrees, because 58 degrees and z are same side interiors which add to 180

Step-by-step explanation:

1) we know that

m∠x=m∠z -----> by alternate interior angles

m∠x+58°=180° ----> by supplementary angles (form a linear pair)

m∠x=180°-58°=22°

therefore

m∠z=22°

2) m∠z+58°=180° ----> by same side interior angles

solve for z

m∠z=180°-58°=122°

therefore

122 degrees, because x and z are alternate interior angles

122 degrees, because 58 degrees and z are same side interiors which add to 180

4 0
3 years ago
Find the value of x.
Wewaii [24]

Answer:

-9

Step-by-step explanation:

6 0
3 years ago
using the slope formula find the slope of the line through the points (0,0) and (3,9) use pencil and paper explain how you can u
maxonik [38]

Answer:

9/3

Step-by-step explanation:

you can't subtract from zero or you can't subtract a number from zero.

7 0
3 years ago
Read 2 more answers
Other questions:
  • A survey asked a group of students to choose their favorite type of music from the choices of rock, hip-hop, and country. The re
    7·2 answers
  • What is the area of this rectangle?
    15·1 answer
  • 9+a=23 what is the answer?
    9·2 answers
  • Is 11/4 rational or irrational
    13·1 answer
  • Twice a number (x) is less than 14.<br> Inequality:<br> The solution to the inequality is:
    8·1 answer
  • Find the missing side lengths​
    13·1 answer
  • I really need help on question 19, 21, and 23 please help
    11·1 answer
  • Algebra II Question - Tell whether the ordered pair is a solution of the system, if so why?
    8·1 answer
  • What do I do?
    13·1 answer
  • Use structure find the perimeter of equilateral triangle klm given the vertices k(-2, 1) and m(10, 6).
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!