I am learning C # and following some simple tutorials. I have a problem and I donβt understand what is happening. Does my Visual Studio interrupt?
I have:
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Learning_C_Sharp { class Program { static void Main(string[] args) { int[] myNumbers = { 10, 20, 30, 40, 50 }; for (int i = 0; i < myNumbers.Length; i++) Console.WriteLine(myNumbers[i]);
I should get the result 10, 20, 30, 40, 50. However, I get 224, since my first number returned instead of 10, regardless of what I set the first number for.
Is my visual studio just broken?
Since then I have uninstalled and reinstalled unchanged. Created a new project and manually entered the code without changes. As long as the array is int, the first value is returned as 224. Also it takes the math, if I say to return the value and add one, then I get 225.
Screenshot to display debug version.

Additional changes:
I split it into bare bones and no matter how I do it, I still get the same results.
I uninstalled, reinstalled, used Revo Uninstaller to completely destroy VS. Tuesday. I am going to update my computer if someone has no idea.
source share