mahaleyrenee5711 mahaleyrenee5711
  • 25-11-2020
  • Computers and Technology
contestada

When you pass a double variable to a method, the method receives ______.a) a copy of the memory addressb) the reference of the variablec) the length of the variabled) a copy of the variablee) the binary memory address

Respuesta :

codiepienagoya codiepienagoya
  • 27-11-2020

Answer:

The answer is "Option d".

Explanation:

In this question the choice d, that is "a copy of the variable" is correct because the method takes a reference value or a copy of the variable in its parameter, the example of this question can be defined as follows:

void me2(double x)//defining a method me2 with a double parameter

{

//method body

 }

double x = 35.655;//defining a double variable x

me2(x);//calling a method with passing the copy of th e variable

Answer Link

Otras preguntas

Explain true or false if you collect organize and interpret your data properly you will always be able to draw a logical conclusion
the glee club has 120 cupcakes to sell. they have decided to arrange the cupcakes in the shape of a rectangle, such that the rows have an even number of cupcake
Hi. Could someone please help me help my son with his homework. TIA For every 4 miles Vanessa jogged, Cody jogged 3 miles. If Vanessa jogged 1 miles, how far wo
What is 1042 divided by 45?
4.5m3 = how many cm3
24 divided by -5 = -4.8. How do you get the .8? I know 5 goes into 20 4 times so the answer is -4.8, but I don't know the step of how to get the .8 without usin
why do the us government intervene in the economy during the finanacial crisis in 2008
What is the expanded form for 286.974
All prime numbers between 40 and 50
solve the simultaneous equations: 4x+7y=1 3x+10y=15