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

stefan plants seeds for 30 carrot plants and 45 beet plants in 5 rows,with the same number of seeds in each row.how many seeds are planted in each row.
stefan plants seeds for 30 carrot plants and 45 beet plants in 5 rows,with the same number of seeds in each row.how many seeds are planted in each row.
combine the symbols of bismuth and cesium
whats 0.018 as a fraction in its simplest form
ten times the sum of half a number and 6 is 8
how to round 36 to the nearest hundred
Why were the reforms of the early 1900s, such as the recall, referendum, and initiative provisions, called “progressive”?
How do crystalline solids differ from amorphous solids?
if the area of a park is is exactly halfway between 2.4 and 2.5 acres, what is the area of the park?
When an industry was monopolized by one company or trust during the Gilded Age, what happened to workers’ wages?