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

Which came out of the implied powers of the constitution the Louisiana purchase the bill of rights tariff a national bank
Please do not use Google Translate! How do I say, "Do you want to be friends?" (In french)
Lava plateaus form when _____.
Jesse is baking several cakes for a bake sale. A pound bag of flour is enough to make 4 cakes. How much flour is needed to make 1 cake?
how do you solve a inequality
Stare the various transformations. Help needed !!!
You should understand me also sometime. “What’s the correct sentence “?
While on exchange in France, Richard purchased a new digital camera that was advertised as follows. True or false? The ad mentions that you can take up to 1000
what determines the color of a rock
Help with this please