Question from the C# - Fundamentals test

What will be the output of this C# code?

Easy

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 15 times
Edit
0
Community EvaluationsNo one has reviewed this question yet, be the first!