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
Which equation is the inverse of y= x^2+4
Nikitich [7]

See the attached picture:

3 0
3 years ago
Find the value of log100,000
Ivahew [28]

Answer:

Step-by-step explanation:

5

4 0
3 years ago
Geometry! Please help! Will mark brianliest!!
bazaltina [42]

Answer:

65, 72, 97

Step-by-step explanation:

Here,

According to figure,

longest side is 97. So it the length of hypoteneous(h) and the shortest side is 65 so it is the length of perpendicular(p) and last one, 72 is the lenght of base(b) of triangle.

According to Pythagorus theorem,

{h}^{2}  =  {p}^{2}  +  {b}^{2}  \\ or  \:  {97}^{2}  =  {65}^{2}  +  {72}^{2}  \\ or \: 9409 = 4225 + 5184 \\ or \: 9409 = 9409

which is true.

If you test the same theorem in other options.The reasult will unsatisfied.

4 0
4 years ago
What is the measure of \blueD{\angle x}∠xstart color #11accd, angle, x, end color #11accd?
mariarad [96]

Answer:

x = 71°

Step-by-step explanation:

By applying triangle sum theorem in ΔBHD,

m∠DBH + m∠BHD + m∠HDB = 180°

40° + m∠BHD + 31° = 180°

m∠BHD = 180° - 71° = 109°

m∠BHD + m∠DHE = 180° [Linear pair of angles]

109° + x° = 180°

x = 180° - 109°

x = 71°

3 0
3 years ago
HELP ME LOOK AT THE PICTURE
antiseptic1488 [7]
Part A
Choice 2- The difference between 2 and -1 is -3.

Part B
Martha's total score is -2

7 0
3 years ago
Other questions:
  • A child reshapes a cone made up of China clay of height 24 and radius 6 into a sphere.
    7·1 answer
  • Find the slope of the tangent line to the curve f(x)=e^(x) at (0.4,1.49)
    5·1 answer
  • Look at this graph.
    13·1 answer
  • When driving 878 by 31, a student finds a quotient of 28 with a remainder of 11. Check the students work, and use the check to f
    13·1 answer
  • The company recently reduced its production to 1 million bicycles, but maintained its profit of 30 million dollars. What greater
    7·2 answers
  • Bruce wants to make 50 ml of an alcohol solution with a 12% concentration. He has a 10% alcohol solution and a 15% alcohol solut
    13·2 answers
  • Multiply using a special product formula <br>(5x-6)(5x+6)=□ (Simplify Your Answer)
    14·2 answers
  • Can I get the answer plz​
    12·1 answer
  • HELP FASTTTTTTTTTTTTTTTTTTTTTTTTTT
    15·2 answers
  • A recycling box has a square base with sides measuring 18 inches. The box is 16 inches tall. What is the volume of the recycling
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!