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
Passing an int by Value
C# code walkthrough · Question 18
medium
Functions
Code
Read carefully. What does this print?
1
void
AddTen
(
int
x
)
2
{
3
x
+=
10
;
4
}
5
int
value
=
5
;
6
AddTen
(
value
)
;
7
Console
.
WriteLine
(
value
)
;
Your answer
What will this code output?
Submit answer
←
Previous
Next
→
home
Home
grid_view
Problems
calendar_today
Daily
workspace_premium
Pricing
menu
Menu