CJCoding With Joseph
15free / daySign inCreate account
Back to Code Walkthrough

Passing an int by Value

C# code walkthrough · Question 18
mediumFunctions

Code

Read carefully. What does this print?
1void AddTen(int x)
2{
3 x += 10;
4}
5int value = 5;
6AddTen(value);
7Console.WriteLine(value);

Your answer