in C Sharp by
Q:
Why to use “Nullable Coalescing Operator” (??) in C#?

1 Answer

0 votes
by
Nullable Coalescing Operator can be used with reference types and nullable value types. So if the first operand of the expression is null then the value of second operand is assigned to the variable. For example,

double? myFirstno = null;

double mySecno;

mySecno = myFirstno ?? 10.11;
Click here to read more about Loan/Mortgage
Click here to read more about Insurance

Related questions

0 votes
asked Oct 18, 2019 in C Sharp by Robin
0 votes
0 votes
asked Feb 16, 2020 in C Sharp by rahuljain1
0 votes
asked Jun 16, 2020 in C Sharp by Hodge
0 votes
asked Jun 16, 2020 in C Sharp by Hodge
0 votes
asked Jan 1 in Python by SakshiSharma
...