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

Explain how the series of wars with France affected Britain's American subjects and helped pave way for their later rebellion against the mother country.
What is a major difference in style between Faulkner's speech and his writing in As I Lay Dying?
Which process creates metamorphic rocks
A bakery sold apple pies for $11 and blueberry pies for $13. One Saturday they sold a total of 38 pies and collected a total of $460. How many apple pies did th
What is the measure of angle 4?
evangelist character in pilgrim's progress is?
advantage to farming of having many frost-free days
The development of mass production and cheap shipping meant that the prices of manufactured goods increased rapidly. factory goods could be purchased across the
Describe the photoelectric effect and explain why it made modifications to the Rutherford model necessary.
Draw a fatty acid chain that is 8 carbons long and is unsaturated