CJCoding With Joseph
15free / daySign inCreate account
Back to Code Walkthrough

Array Aliasing

C# code walkthrough · Question 29
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