R

Ram Sharma • 3.40K Points
Extraordinary

Q. What is the use of `??` operator in C#?

  • (A) Null checking and fallback
  • (B) Bitwise operation
  • (C) Type casting
  • (D) String formatting

Explanation by: Ram Sharma
`??` is the null-coalescing operator, returning the left operand if not null, otherwise the right.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.