CJCoding With Joseph
← Back to Question List
C# Code Walkthrough #18

Passing an int by Value

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