leahcragg5859 leahcragg5859
  • 14-09-2019
  • Computers and Technology
contestada

.When an argument is passed ______________, the called method can access and modify the caller’s original data directly.

a.either by value or by reference

b.by value

c.using keyword ref

Respuesta :

ExieFansler ExieFansler
  • 20-09-2019

Answer:

c.using keyword ref

Explanation:

In C# when we have pass any variable by reference we use the ref keyword. When we pass a variable by reference in the function the changes done in the function are directly happening on the original variables.

When a variable is  passed by value a copy of these variable is created in the function and the operation is done on those copies.No changes can be seen on the original variables.

Hence the answer is option c.

Answer Link

Otras preguntas

Jermaine and Lashonda each rub their dry hair with inflated balloons. While doing this, the other students notice that their hair is starting to stick straight
Magma that reaches earths surface and flows from volcanoes is what
Why is the oxidation state of o2- more likely than o6+ please explain ?
Who first suggested using Navajo for military radio communications?
Help please !!!!!!! I need it for my class ASAP
Need help with 6,11 & 12 please
Where does blood go after the right atrium?​
which level of government is responsible for fighting crime​
Please need help on this
HELP I SUCK AT THIS STUFF (FAST)Use the graph of ƒ to find where ƒ(x) > 0. Assume the entire function is graphed.[–1, –8)[–1, 0)(–1, 0)(–1, 0]