R

Ram Sharma • 3.40K Points
Extraordinary

Q. What does `ref` keyword in C# do?

  • (A) Passes value by reference
  • (B) Declares a readonly field
  • (C) Defines a reference type
  • (D) Creates a pointer

Explanation by: Ram Sharma
`ref` allows passing arguments by reference, enabling the method to modify the variable value.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.