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
Find an equation of the tangent line to the hyperbola: x^2/a^2 - y^2/b^2 = 1 at the point (x0,x1)
musickatia [10]

The standard form of a hyperbola is <span><span><span>x2/</span><span>a2 </span></span>− y<span><span>2/ </span><span>b2 = 1
the tangent line is the first derivative of the function</span></span></span><span>y′ = <span>b^2x/ a^2 y
hence the slope is </span></span><span>m = <span>b^2 x0 / <span>a^2 <span>x1

</span></span></span></span>Therefore the equation of the tangent line isy−x1 = b^2 x0 / a^2 x1* (x−x0)

8 0
3 years ago
How many solutions are there to the equation x1 + x2 + x3 + x4 + x5 + x6 = 25 in which each xi is a non-negative integer and … (
prohojiy [21]

Answer:

The equation x1 + x2 + x3 + x4 + x5 + x6 = 25 in which each xi is a non-negative integer and … Will have:

(a) 6 solutions where there are no other restrictions.

(b) 4 Solutions for xi ≥ 3 for i = 1, 2, 3, 4, 5, 6(x3 + x4 +x5 + x6 = 25)

(c) 4 Solutions for 3 ≤ x1 ≤ 10

( x3 + x4 + x5 + x6 = 25)

(d) 5 Solutions for 2 ≤ x2 ≤ 7

Step-by-step explanation:

The equation have 6 unknown variables . This means it will have 6 solutions when no condition is imposed as in (a) above. The number of unknown variables in the equation will give the numbers of solutions

When the conditions are imposed, the numbers of unknown variables will give the number of solutions.

In (b) and (c), the equation will reduce to x3 + x4 +x5 + x6 = 25) and the unknown variables are 4, giving 4 solutions

In (d), the equation will reduce be 5 unknown variables(x2 + x3 + x4 +x5 + x6 = 25) and the solution is 5

8 0
2 years ago
Please help meeeee I will mark brainliest
GarryVolchara [31]

Answer:

It's y-x= -4

Step-by-step explanation:

I drew the graph and figured out the points. Hope this helps.

5 0
2 years ago
Read 2 more answers
257 whole number,integer number, or rational number
aliya0001 [1]
257 is a whole number, interger, and a rational number.
8 0
2 years ago
Read 2 more answers
Need help on this for brainliest
Arisa [49]

Answer:

Your answer is letter d

Step-by-step explanation:

7 0
3 years ago
Other questions:
  • Karen opens a savings account with $1500. She deposits every month into the account that has a 0.85% interest rate, compound ann
    7·1 answer
  • Suppose there is a 13.9 % probability that a randomly selected person aged 40 years or older is a jogger. In​ addition, there is
    8·1 answer
  • What is the answer for this question
    9·1 answer
  • A real estate agent knows that he will receive a commission of $4,250 from the sale of a property when the deal is completed 37
    9·1 answer
  • Factor -28x2-12x , thank you all for helping me answer these questions.
    6·1 answer
  • Help me solve each question
    5·1 answer
  • A lamp post with a height of 12 ft casts a shadow of 6 ft. A fire hydrant near it casts a shadow that is 1.5 ft long. How tall i
    9·1 answer
  • Consider the arithmetic sequence with a first term of 11 and sixth term of 21. What is the
    9·1 answer
  • What is 28,030,000 in expanded form?
    7·2 answers
  • 8. Find the area of the shaded region.
    7·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!