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
Giving 40 points who help me
Elena L [17]

Answer:

D is the answer. There are 5 boxes, that each has 3 filled in.

7 0
2 years ago
Please help me with this one
Vladimir79 [104]
Is 10 and 15 because they both have a value of .909
8 0
3 years ago
Help please photo is above
Zina [86]

Answer:

y = 5

x = 10

Step-by-step explanation:

-4(2y) + 11y

-8y + 11y = 15

3y = 15

/ 3 /3

y = 5

x = 10

3 0
3 years ago
What is the degree 3 polynomial that has zeros -3,2 and 5 and in which the coefficient of x^2 is -8?
Setler [38]
For zeroes/roots r1,r2, r3
the facors of the polynomial is
(x-r1)(x-r2)(x-r3)

roots
-3,2,5
(x-(-3))(x-2)(x-5)
(x+3)(x-2)(x-5)
the coefient of the x term is -4
so mutliply the whole thing by 2

(2)(x+3)(x-2)(x-5)

expand
f(x)=2x^3-8x^2-22x+60
3 0
4 years ago
10 in.<br> 13 in.<br> 16 in. <br> What is the Surface area of the triangular prism
Marianna [84]

Answer:

about 704 in 2

Step-by-step explanation:

surface area-2Ab+Pb*h

=2(13*8)+49.6(10)

=704

3 0
3 years ago
Other questions:
  • Identify the constant term in this expression.
    12·1 answer
  • What happened when a bunch of numbers got lost in the desert and spent years wandering from oasis to oasis?
    8·1 answer
  • For a circle of raduis 6feet, find the arc length of a central angle of 6
    9·1 answer
  • Bluefin tuna are large fish that can weigh 1,500 pounds and swim at speeds of 55 miles per hour. because they are used in sushi,
    7·1 answer
  • A TV is advertised on sale for 35% off, and is now $195.00. What was the original price.
    9·1 answer
  • What is the next cube number after 1
    11·1 answer
  • If the revenue for the week is $2000, and labor cost consists of two workers earning $8 per hour who work 40hours each, what is
    15·1 answer
  • A sports tournament has d teams. Each team has 16 players. what is an expression for total number of player?
    14·1 answer
  • I WILL GIVE TONS OF BRAINLY POINTS TO HOWEVER HELPS ME!!
    13·2 answers
  • Please help I don’t understand please
    10·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!