Skip to content
menu
arrow_back
CJ
Coding With Joseph
search
light_mode
Light
desktop_windows
System
dark_mode
Dark
bolt
15
free / day
Sign in
Create account
←
Back to Code Walkthrough
Null-Coalescing and Its Assignment
C# code walkthrough · Question 49
medium
Null Handling
Code
Read carefully. What does this print?
1
int
?
a
=
null
;
2
int
b
=
a
??
10
;
3
a
??=
20
;
4
Console
.
WriteLine
(
$"
{
b
}
{
a
}
"
)
;
Your answer
What will this code output?
Submit answer
←
Previous
Next
→
home
Home
grid_view
Problems
calendar_today
Daily
workspace_premium
Pricing
menu
Menu