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
PLEASE HELP ME ASAP ITS A EXAM
xz_007 [3.2K]
The first one should be the third option and the second one should be the first one.
6 0
3 years ago
What is the range of the function graphed below?
ANEK [815]
The range is all possible y values. In this function, range is from -3 < y
* the
3 0
3 years ago
Write a number that means the same as (5×10,000) + (4×100) +(3×1)
pogonyaev
10,000x5=50,000
100x4=400
3x1=3

Total = 50,403
8 0
3 years ago
Read 2 more answers
What is 2 + 1 = ? is it 3 or is it 3 because i dont know​
Vesnalui [34]

Answer: 4

Step-by-step explanation:

3 0
3 years ago
Read 2 more answers
An aluminum can is a right cylinder. Find the amount of paper needed for the can's label and the total
Rina8888 [55]

Answer:

Label: About 527.9 square centimeters

Aluminum: About 835.7 square centimeters

Step-by-step explanation:

Amount of paper needed for the label:

You can imagine taking off the label and unrolling it, forming a rectangle. The height of this rectangle will be the height of the cylinder, while the length of the rectangle will be the circumference of the cylinder. Therefore, the area of that rectangle will be 2\pi r h= 2 \cdot \pi \cdot 7 \cdot 12\approx 527.9.

Amount of aluminum needed for the can:

This time, you need to add in the top and bottom of the can as well, which each have area \pi r^2. Together, they have area 2\pi r^2=2\cdot \pi \cdot 7^2\approx 307.9. Adding this to the area of the sides, you get a total of about 835.7 square centimeters.

Hope this helps!

6 0
3 years ago
Other questions:
  • Half your baseball card collection got wet and was ruined. You bought 13 cards to replace some that were lost. How many did you
    12·1 answer
  • Mrs William has a prized box with different colored tickets. Each ticket results in different type of prize.
    12·1 answer
  • A fly that started 45 centimeters above the windowsill is now 44 centimeters above the windowsill. What was the fly's change in
    11·1 answer
  • Given that f(x) = 3x and g(x) = 4x, write a function that represents f(g(x)) and a function that represents g(f(x)).
    9·1 answer
  • PLEASE HELP AND GET 25 POINTS! ❄️<br><br> Please see the image
    12·1 answer
  • Maya just bought a refrigerator for $642. She paid $160.40 in a down payment and will pay the rest in 4 equal installments. How
    12·1 answer
  • (14 points) can someone please help me do these two problems asap?
    6·1 answer
  • The figure below shows BT with point B at the intersection
    13·1 answer
  • A spinner for a game has 5 equal sections labeled 1-5. why is the probability of spinning a 1 or a 4?
    13·1 answer
  • A paper airplane was thrown from the top of a tall building. The height of the paper airplane above the ground can be found usin
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!