Medium
What result will be displayed in the console ?
public static class Helper {
public static void AddOne(int val) {
val = val + 1;
}
}
public class Program
{
public static void Main()
{
int val = 0;
Helper.AddOne(val);
Console.WriteLine(val);
}
}
Author: CyrilStatus: PublishedQuestion passed 22 times
Edit
0
Community EvaluationsNo one has reviewed this question yet, be the first!
2
What is the new syntax for creating an object in C# 9.0?3
Initialize a new Vehiclue object containing a string field in C#3
Write a C# class with a private int age field and getter and setter methods for it.2
How to declare a SortedList<Key,Value> in C#3
An event in an ASP.NET application:4
The PFX Framework:5
Simple inheritance between a parent class and a child class in C#