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

Array Aliasing

mediumArrays

📄 Code

Read carefully — what does this print?
1int[] a = { 1, 2, 3 };
2int[] b = a;
3b[0] = 99;
4Console.WriteLine(a[0] + " " + b[0]);

🎯 Your Answer