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
Evaluation Order in an Assignment
C# code walkthrough · Question 24
hard
Arrays
Code
Read carefully. What does this print?
1
int
i
=
1
;
2
int
[
]
a
=
new
int
[
5
]
;
3
a
[
i
++
]
=
i
++
;
4
Console
.
WriteLine
(
$"
{
i
}
{
a
[
1
]
}
{
a
[
2
]
}
"
)
;
Your answer
What will this code output?
Submit answer
←
Previous
Next
→
home
Home
grid_view
Problems
calendar_today
Daily
workspace_premium
Pricing
menu
Menu